-
Notifications
You must be signed in to change notification settings - Fork 732
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
Error in uv pip install
when using a new build backend to build old wheels
#7658
Comments
uv pip install
when using a new build backed to build old wheelsuv pip install
when using a new build backend to build old wheels
Hi! I think the direct problem you are facing is that numpy 1.17.3 doesn't work with Python 3.10 (it has wheels for 3.5 to 3.8); on this Python version, you likely need to use are higher numpy version (or conversely, test on an older Python version). I'm surprised that |
Yep, that was it, thanks!
In my haste to submit this issue I may not have been accurate enough. Here is a more detailed representation of my issue:
If I understand correctly, the problem stems from the fact that these older versions of |
This a common problem, one that's about how the pypi-ecosystem handles metadata: When numpy 1.17.3 was released, the devs didn't know yet with which future Python version it may or may not be compatible, they could only say they know they need at least a certain version. Python 3.x makes only careful changes in each release, so a lot of packages that used to work on Python 3.x keep working on 3.(x+n). Since we projects append metadata for existing releases to specify the real compatibility after the original release, the most reasonable thing for us is to assume a packages works with all future python versions. This generally works, but sometimes we get those build failures. |
Hi,
First of all - thanks for this amazing tool! I've only been using it for a few weeks and it's already making my workflow so much faster and simpler!
I ran into this error trying to install some old version on
numpy
withuv pip install
:ModuleNotFoundError: No module named 'distutils.msvccompiler'
Full example:
I believe this is related to these issues:
However, I don't know how to resolve this.
To elaborate, my full use-case is that I'm building a wheel for my project and I want to test it with the lowest and highest possible dependency versions.
In order to test the lowest dependency versions, I set up my test env with
uv sync --resolution lowest-direct
.Since one of my dependencies has a transient dependency on
numpy==1.17.3
in its lowest version range, I am faced with this error. I can add the latest numpy version to my project dependencies which would fix this error, but that will be too constricting for my package, since there is nothing preventing my code from working with lower numpy versions, it's just that's I'm unable to build them properly...Would very much appreciate your assistance.
Thanks.
The text was updated successfully, but these errors were encountered: