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
When trying to update pip in a venv inside of a fuse cryptomator drive (using "pip install -U pip"), I get the following errors: "ERROR: Failed to restore <path_to_venv>/lib/python3.12/site-packages/pip/",
then: "ERROR: Could not install packages due to an OSError: [Errno 2] Aucun fichier ou dossier de ce nom: '<path_to_venv>/lib/python3.12/site-packages/pip/_internal/init.py'" (excuse the french, it translates to "no file or folder with this name").
After that pip stops working and <path_to_venv>/lib/python3.12/site-packages/pip is empty.
I assume this would happen in any fuse file system but am unsure how to test that. Although it may be a cryptomator specific problem.
Expected behavior
pip upgrades correctly and without errors even in a cryptomator drive
pip version
23.3.2 trying to upgrade to 24.2
Python version
3.12.7
OS
Fedora 40
How to Reproduce
Create venv in a cryptomator drive (python -m venv .venv)
Activate venv (. ./.venv/bin/activate.fish (since I use fish and not bash))
Upgrade pip (pip install -U pip)
run any pip command (Ex: pip --version)
Output
$ pip install -U pip
Requirement already satisfied: pip in ./.venv/lib64/python3.12/site-packages (23.3.2)
Collecting pip
Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.3.2
Uninstalling pip-23.3.2:
Successfully uninstalled pip-23.3.2
Rolling back uninstall of pip
Moving to <path_to_venv>/bin/pip
from /tmp/pip-uninstall-mdrrfnzn/pip
Moving to <path_to_venv>/bin/pip3
from /tmp/pip-uninstall-mdrrfnzn/pip3
Moving to <path_to_venv>/bin/pip3.12
from /tmp/pip-uninstall-mdrrfnzn/pip3.12
Moving to <path_to_venv>/lib/python3.12/site-packages/pip-23.3.2.dist-info/
from <path_to_venv>/lib/python3.12/site-packages/~ip-23.3.2.dist-info
Moving to <path_to_venv>/lib/python3.12/site-packages/pip/
from <path_to_venv>/lib/python3.12/site-packages/~ip
ERROR: Failed to restore <path_to_venv>/lib/python3.12/site-packages/pip/
ERROR: Could not install packages due to an OSError: [Errno 2] Aucun fichier ou dossier de ce nom: '<path_to_venv>/lib/python3.12/site-packages/pip/_internal/init.py'
[notice] A new release of pip is available: 23.3.2 -> 24.2
[notice] To update, run: pip install --upgrade pip
$ pip --version
Traceback (most recent call last):
File "<path_to_venv>/bin/pip", line 5, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal
Description
When trying to update pip in a venv inside of a fuse cryptomator drive (using "pip install -U pip"), I get the following errors: "ERROR: Failed to restore <path_to_venv>/lib/python3.12/site-packages/pip/",
then:
"ERROR: Could not install packages due to an OSError: [Errno 2] Aucun fichier ou dossier de ce nom: '<path_to_venv>/lib/python3.12/site-packages/pip/_internal/init.py'" (excuse the french, it translates to "no file or folder with this name").
After that pip stops working and <path_to_venv>/lib/python3.12/site-packages/pip is empty.
I assume this would happen in any fuse file system but am unsure how to test that. Although it may be a cryptomator specific problem.
Expected behavior
pip upgrades correctly and without errors even in a cryptomator drive
pip version
23.3.2 trying to upgrade to 24.2
Python version
3.12.7
OS
Fedora 40
How to Reproduce
Output
$ pip install -U pip
Requirement already satisfied: pip in ./.venv/lib64/python3.12/site-packages (23.3.2)
Collecting pip
Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Using cached pip-24.2-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.3.2
Uninstalling pip-23.3.2:
Successfully uninstalled pip-23.3.2
Rolling back uninstall of pip
Moving to <path_to_venv>/bin/pip
from /tmp/pip-uninstall-mdrrfnzn/pip
Moving to <path_to_venv>/bin/pip3
from /tmp/pip-uninstall-mdrrfnzn/pip3
Moving to <path_to_venv>/bin/pip3.12
from /tmp/pip-uninstall-mdrrfnzn/pip3.12
Moving to <path_to_venv>/lib/python3.12/site-packages/pip-23.3.2.dist-info/
from <path_to_venv>/lib/python3.12/site-packages/~ip-23.3.2.dist-info
Moving to <path_to_venv>/lib/python3.12/site-packages/pip/
from <path_to_venv>/lib/python3.12/site-packages/~ip
ERROR: Failed to restore <path_to_venv>/lib/python3.12/site-packages/pip/
ERROR: Could not install packages due to an OSError: [Errno 2] Aucun fichier ou dossier de ce nom: '<path_to_venv>/lib/python3.12/site-packages/pip/_internal/init.py'
[notice] A new release of pip is available: 23.3.2 -> 24.2
[notice] To update, run: pip install --upgrade pip
$ pip --version
Traceback (most recent call last):
File "<path_to_venv>/bin/pip", line 5, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal
Code of Conduct
The text was updated successfully, but these errors were encountered: