Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.getcwd() FileNotFoundError #6584

Closed
kalefranz opened this issue Dec 27, 2017 · 4 comments
Closed

os.getcwd() FileNotFoundError #6584

kalefranz opened this issue Dec 27, 2017 · 4 comments
Labels
locked [bot] locked due to inactivity source::auto create as a result of a crash report or through other automatically reported means type::bug describes erroneous operation, use severity::* to classify the type
Milestone

Comments

@kalefranz
Copy link
Contributor

error: FileNotFoundError(2, 'No such file or directory')
command: /root/anaconda3/bin/conda shell.posix deactivate
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.3 Linux/4.13.0-kali1-amd64 kali/2017.3 glibc/2.25
_messageid: -9223372036844975611
_messagetime: 1514233339489 / 2017-12-25 14:22:19

Traceback (most recent call last):
  File "/root/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 110, in main
    from ..activate import main as activator_main
  File "/root/anaconda3/lib/python3.6/site-packages/conda/activate.py", line 12, in <module>
    context.__init__()  # oOn import, context does not include SEARCH_PATH. This line fixes that.
  File "/root/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 214, in __init__
    argparse_args=argparse_args)
  File "/root/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 723, in __init__
    self._set_search_path(search_path)
  File "/root/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 729, in _set_search_path
    self._set_raw_data(load_file_configs(search_path))
  File "/root/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 366, in load_file_configs
    expanded_paths = tuple(expand(path) for path in search_path)
  File "/root/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 366, in <genexpr>
    expanded_paths = tuple(expand(path) for path in search_path)
  File "/root/anaconda3/lib/python3.6/site-packages/conda/common/path.py", line 49, in expand
    return abspath(expanduser(expandvars(path)))
  File "/root/anaconda3/lib/python3.6/posixpath.py", line 374, in abspath
    cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
@kalefranz kalefranz added source::auto create as a result of a crash report or through other automatically reported means type::bug describes erroneous operation, use severity::* to classify the type labels Dec 27, 2017
@kalefranz
Copy link
Contributor Author

error: FileNotFoundError(2, 'No such file or directory')
command: /Users/limxing/anaconda3/bin/conda install iris
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.4 Darwin/17.3.0 OSX/10.13.2
_messageid: -9223372036844475580
_messagetime: 1514289512434 / 2017-12-26 05:58:32

Traceback (most recent call last):
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 724, in __call__
    return func(*args, **kwargs)
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 74, in _main
    context.__init__(argparse_args=args)
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 214, in __init__
    argparse_args=argparse_args)
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 723, in __init__
    self._set_search_path(search_path)
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 729, in _set_search_path
    self._set_raw_data(load_file_configs(search_path))
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 366, in load_file_configs
    expanded_paths = tuple(expand(path) for path in search_path)
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 366, in <genexpr>
    expanded_paths = tuple(expand(path) for path in search_path)
  File "/Users/limxing/anaconda3/lib/python3.6/site-packages/conda/common/path.py", line 49, in expand
    return abspath(expanduser(expandvars(path)))
  File "/Users/limxing/anaconda3/lib/python3.6/posixpath.py", line 374, in abspath
    cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory

@kalefranz
Copy link
Contributor Author

error: FileNotFoundError(2, 'No such file or directory')
command: /home/anti/miniconda3/bin/conda update --all
user_agent: conda/4.4.4 requests/2.18.4 CPython/3.6.4 Linux/3.10.0-693.11.1.el7.x86_64 centos/7 glibc/2.17
_messageid: -9223372036844375596
_messagetime: 1514305043219 / 2017-12-26 10:17:23

Traceback (most recent call last):
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/exceptions.py", line 724, in __call__
    return func(*args, **kwargs)
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/cli/main.py", line 74, in _main
    context.__init__(argparse_args=args)
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/base/context.py", line 214, in __init__
    argparse_args=argparse_args)
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 723, in __init__
    self._set_search_path(search_path)
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 729, in _set_search_path
    self._set_raw_data(load_file_configs(search_path))
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 366, in load_file_configs
    expanded_paths = tuple(expand(path) for path in search_path)
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 366, in <genexpr>
    expanded_paths = tuple(expand(path) for path in search_path)
  File "/home/anti/miniconda3/lib/python3.6/site-packages/conda/common/path.py", line 49, in expand
    return abspath(expanduser(expandvars(path)))
  File "/home/anti/miniconda3/lib/python3.6/posixpath.py", line 374, in abspath
    cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory

@kalefranz
Copy link
Contributor Author

nehaljwani added a commit that referenced this issue Dec 28, 2017
@kalefranz kalefranz added this to the 4.4.5 milestone Dec 29, 2017
@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::auto create as a result of a crash report or through other automatically reported means type::bug describes erroneous operation, use severity::* to classify the type
Projects
None yet
Development

No branches or pull requests

1 participant