-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip breaks after installation of some packages #11411
Comments
I have installed the following packages:
|
Note: upgrading pip does not work because pip does not work, those 'fixes' did not work I found online |
The line in your output saying You should raise this with your OS vendor in the first instance, as they are responsible for any issues caused by their patches. |
(Your local installation of packaging is too old, pip needs a newer version which is why we vendor it). |
I still don't really understand. What I forgot to tell is that anaconda environments are still working (pip's fine there) but I dislike them and they probably use their own pip. |
Sorry. The key point here is that you need to raise this with Arch Linux, not with us, as they have modified pip for their distribution, and we don't support those modifications. |
This is an issue with Arch Linux. /cc @felixonmars @FFY00 The Arch Linux distributed version of pip is modified in a way that makes it possible to break it (as the user has done here) by installing other packages in the system environment. Please do report this to Arch Linux as a bug, pointing them to this issue and this Twitter thread: https://twitter.com/pradyunsg/status/1556960080565780481 Beyond that, I suggest using virtual environments whenever possible, and avoiding using the Arch-Linux provided pip/Python, until they are able to fix this. |
cc @dvzrv |
A possible way to solve this without affecting the users too much would be for arch to create a custom scheme for arch-provided packages and have pip only look at that. However, this is currently not possible due because the proposed mechanism that would allow us to implement this haven't been merged in CPython and arch has a policy against patching. Maybe a exception can be made here, but I am not sure, the CPython upstream did already acknowledge these kind of needs with https://docs.python.org/3/library/sysconfig.html#sysconfig._get_preferred_schemes, and the discussion around the proposed mechanisms isn't either if they are a bad thing/solution, but rather than if they are enough for other distributions, specifically Debian. If it helps, we can coordinate with the Python upstream in this. That said, I am not the I understand this all is very complex, please let me know if there is anything you'd like me to clarify. |
Personally, I think (1) is a better solution for the short term at least. (2) may be an option, although you can likely achieve if it's done using |
Ideally, 2) would be implemented via a interpreter option that we can put in the shebang. |
@FFY00 thanks for the thorough reply. I'd be interested in option 2, although I have to admit I don't fully understand how that would look like implemented. For the time being it might indeed make most sense to not devendor pip anymore. :S |
Another way to achieve this would be to follow what pip's vendoring documentation says. From https://pip.pypa.io/en/stable/development/vendoring-policy/#debundling:
|
Shall I do anything? |
Devendoring leads to undesired side-effects for users when installing packages in user-space: pypa/pip#11411 Until a better solution is found to circumvent the loading of user-installed packages instead of the system-wide installed devendored dependencies, vendoring is unfortunately the only viable option. git-svn-id: file:///srv/repos/svn-packages/svn@454672 eb2447ed-0c53-47e4-bac8-5bc4a241df78
Devendoring leads to undesired side-effects for users when installing packages in user-space: pypa/pip#11411 Until a better solution is found to circumvent the loading of user-installed packages instead of the system-wide installed devendored dependencies, vendoring is unfortunately the only viable option. git-svn-id: file:///srv/repos/svn-packages/svn@454672 eb2447ed-0c53-47e4-bac8-5bc4a241df78
@arch-user-france1 I think with python-pip 22.2.2-2 this issue should be gone for you. @pradyunsg I think this issue can be closed. |
Thanks @dvzrv! ❤️ |
I'm currently waiting until the Manjaro repository gets updated. Damn, I hate Manjaro so much. |
Description
pip dies
Expected behavior
pip does not die
pip version
unsure, cannot run pip
Python version
python 3.5.10
OS
Arch
How to Reproduce
not sure
Output
The text was updated successfully, but these errors were encountered: