-
Notifications
You must be signed in to change notification settings - Fork 984
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
Regression from 0.1.15 to 0.1.16/17 when using --system on some RHEL based Docker images #2353
Comments
I’ll take a look, thanks! The main change between those versions is that we now follow the same logic as pip: for older Python versions or distros that override it, we use distutils instead of site-packages. That’s likely what’s happening here, since you’re pre-3.9, and my guess is distutils is patched in some way by the distro. Can you check what directory pip installs into? |
Actually, by far the most useful thing would be if you could share a minimal Dockerfile that reproduces this with Fedora or otherwise. |
I could not reproduce on Fedora in Docker, so I will focus on RHEL, and open a separate issue for Fedora if I can ever build a MRE. Here is the MRE for RHEL:
Then I use podman to build (4.6.2). Thanks! |
Thank you! |
On that I get:
|
I can try to resolve but I would like to make sure I'm using the same system Python install. |
My bad, some caching hid this error. I will attempt another MRE (this is a bit non-trivial as my original issue used a private registry with private base images), and I am trying to replicate on publicly available images. Thank you for your patience. |
@alexprengere - No rush, I just want to get it fixed as soon as I'm able to! :) |
I believe this is fixed by #2413 (available in the next release). |
If not, please re-open! |
I can confirm the problem is no longer there on uv 0.1.20 🥳 Thanks! |
I have a Docker image from a private registry which boils down to:
This works great!
When replacing
uv==0.1.15
byuv==0.1.16
oruv==0.1.17
, I now have this error:Here are a few more details when inspecting the image:
It looks like
/usr/local/lib/python3.9/site-packages
does not exist.I am not sure why
/usr/local/lib64/python3.9/site-packages
was not chosen here.I checked on Fedora, it has a similar layout and the same issue is there.
The text was updated successfully, but these errors were encountered: