You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visual Studio Code: Version 1.64.2
Remote Development Pack 0.21.0
Pyenv 2.2.4-1-4-g1e79a522
Pipenv 2022.1.8
Repro Steps
While trying to install all packages via pipenv install the following error appears:
fabmeyer@MININT-A6EC35R:~/Dev/Python/analytics$ pipenv install Traceback (most recent call last): File "/home/fabmeyer/.pyenv/versions/3.9.0/bin/pipenv", line 8, in <module> sys.exit(cli()) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__ return self.main(*args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/cli/command.py", line 194, in install do_install( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 1862, in do_install ensure_project( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 526, in ensure_project ensure_virtualenv( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 452, in ensure_virtualenv python = ensure_python(project, three=three, python=python) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 344, in ensure_python path_to_python = find_a_system_python(python) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 313, in find_a_system_python python_entry = find_python(finder, line) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/utils.py", line 2230, in find_python result = finder.find_python_version(line) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 288, in find_python_version return self.system_path.find_python_version( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 120, in system_path self._system_path = self.create_system_path() File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 82, in create_system_path return pyfinder_path.SystemPath.create( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 667, in create { File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 672, in <dictcomp> if p.exists() File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/pathlib.py", line 1407, in exists self.stat() File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/pathlib.py", line 1221, in stat return self._accessor.stat(self) PermissionError: [Errno 13] Permission denied: '/mnt/c/windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps'
This error appears when using the terminal from Ubuntu as well as from VS Code.
Pyenv works (can switch Python version, install packages and run files from VS Code).
Please help.
Expected Behavior
Should try to install all packages.
Actual Behavior
Does not install anything because of permission error (Errno 13).
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
Sadly this isn't something that WSL can fix (access to this folder being denied to program comes from Windows). Sounds like failing to access one of the folder in $PATH should be gracefully handled. In the meantime the suggested workaround appears to solve the issue.
Version
Microsoft Windows [Version 10.0.19044.1566]
WSL Version
Kernel Version
5.10.16
Distro Version
Ubuntu-20.04
Other Software
Visual Studio Code: Version 1.64.2
Remote Development Pack 0.21.0
Pyenv 2.2.4-1-4-g1e79a522
Pipenv 2022.1.8
Repro Steps
While trying to install all packages via
pipenv install
the following error appears:fabmeyer@MININT-A6EC35R:~/Dev/Python/analytics$ pipenv install Traceback (most recent call last): File "/home/fabmeyer/.pyenv/versions/3.9.0/bin/pipenv", line 8, in <module> sys.exit(cli()) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__ return self.main(*args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/cli/command.py", line 194, in install do_install( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 1862, in do_install ensure_project( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 526, in ensure_project ensure_virtualenv( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 452, in ensure_virtualenv python = ensure_python(project, three=three, python=python) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 344, in ensure_python path_to_python = find_a_system_python(python) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/core.py", line 313, in find_a_system_python python_entry = find_python(finder, line) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/utils.py", line 2230, in find_python result = finder.find_python_version(line) File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 288, in find_python_version return self.system_path.find_python_version( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 120, in system_path self._system_path = self.create_system_path() File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 82, in create_system_path return pyfinder_path.SystemPath.create( File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 667, in create { File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 672, in <dictcomp> if p.exists() File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/pathlib.py", line 1407, in exists self.stat() File "/home/fabmeyer/.pyenv/versions/3.9.0/lib/python3.9/pathlib.py", line 1221, in stat return self._accessor.stat(self) PermissionError: [Errno 13] Permission denied: '/mnt/c/windows/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps'
This error appears when using the terminal from Ubuntu as well as from VS Code.
Pyenv works (can switch Python version, install packages and run files from VS Code).
Please help.
Expected Behavior
Should try to install all packages.
Actual Behavior
Does not install anything because of permission error (Errno 13).
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: