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

Can't update pip in cryptomator drive #13040

Open
1 task done
randomoOCoder opened this issue Oct 24, 2024 · 2 comments
Open
1 task done

Can't update pip in cryptomator drive #13040

randomoOCoder opened this issue Oct 24, 2024 · 2 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@randomoOCoder
Copy link

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

  1. Create venv in a cryptomator drive (python -m venv .venv)
  2. Activate venv (. ./.venv/bin/activate.fish (since I use fish and not bash))
  3. Upgrade pip (pip install -U pip)
  4. 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

Code of Conduct

@randomoOCoder randomoOCoder added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Oct 24, 2024
@notatallshaw
Copy link
Member

I don't think many pip maintainers are going to be familiar with "cryptomator", you're probably going to get better support by reaching out to peers or help forums, such as, Cryptomator Community, Python Discuss help category, /r/learnpython on reddit, Python Discord's #python-help channel, #python on Libera.chat (IRC), python-list or python-tutor mailing lists, or StackOverflow.

@randomoOCoder
Copy link
Author

That's true but I still wanted to put it here if someone wants to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants