-
Notifications
You must be signed in to change notification settings - Fork 155
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 install failed on MacOS Big Sur because build wheel with unsupported tag #381
Comments
That error is something that wheel would produce. Can you paste the list of supported tags on your system? |
Here is the file. Thank you. |
I don't have the expertise to debug this, so I'm calling out for those with macOS platform expertise to help. |
This is the likely cause: pypa/packaging#318 |
I believe this is the reason. Thank you @agronholm for the investigation! |
Why did you close the issue? It's still a problem with wheel, and I need to vendor the updated packaging library once they've fixed the problem upstream. |
Oh sorry I thought this issue is only related to their side and don't want to bother here. Tracking the issue here is also good. Thank you. |
I believe the latest version of packaging (20.5) should solve this issue. |
Thanks for the pointer @jcwchen ...although doesn't seem to be working for me. I'm getting this issue with multiple packages ( Is there anything else I need to do other than Current versions are: |
Your version setting looks good to me and only updating |
Wheel has |
I've updated the vendored packaging now. Let me know if the problem persists. |
Once this has been tested to work, I will make a new release. |
If a mac user with Big Sur could test the latest master and confirm that it works, I could go ahead and make a release. |
I can test, but struggling to work out how to fix my wheel version to master. Would you be able to give me some pointers? |
I was able to add Big Sur to the Github Actions test matrix and the tests passed, so this is not strictly necessary. But for reference, doing |
Amazing thanks. Weirdly 4/5 libraries now seem to install fine, but I still get the same error with |
What makes lazy-object-proxy different? Can somebody else verify that this particular package still has problems? |
Greetings; I think I'm also afflicted by this problem, or something similar. I encountered this while building out a fresh python3.9 venv and then installing various packages into it. python3.9 is provided by brew, but all package management happens with pip inside a virtualenv (via virtualenvwrapper).
complete output: pip-install-scikit-learn.txt Checking my supported tags, it does seem as though "macosx_11_0_x86_64" is not represented. I also tried updating Also (not sure if this is strictly related to this issue's problem): I noticed that the scikit-learn build (and maybe others?) are not building with the expected toolchain; below we see that the default toolchain isn't the one being invoked.
(excerpt from pip-install-scikit-learn.txt)
In this case, Xcode.app should generally be valid, but is a slightly older version than Xcode-GM.app and only has a macOS SDK - not the iOS family of SDKs (there's a reason ;). |
If those packages aren't using the installed wheel version to build, there's nothing I can do about it. Could you investigate a little bit? |
I'll also raise an issue with Is this preventing a release with this fix going out? It did seem to at least fix some libraries for me, so wondering if an official release would solve some problems. |
That is my thinking as well. I'll make a release ASAP. |
Can you test again now that v0.36.0 is out? |
Forgot to say actually - I'll try again later with the new release to see if this fixes the issue more broadly 👍 |
How was it overriding the wheel version? |
Maybe I'm not explaining correctly, but this file meant that it didn't seem to use the master version of wheel I was using: https://github.com/ionelmc/python-lazy-object-proxy/blob/master/pyproject.toml |
assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag) not able to run command pip install flirimageextractor ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects |
All of "flirimageextractor"'s dependencies are exactly pinned down to the patch release - see https://github.com/nationaldronesau/FlirImageExtractor/blob/master/pyproject.toml. It's very likely there are old, buggy versions of things that have this old bug. If you don't pin numpy like that, you should get a wheel that works on ARM, for example, rather than trying to build an (unsupported) version. You should open an issue here: https://github.com/nationaldronesau/FlirImageExtractor/issues, I think. |
Hi,
Currently our Python package (ONNX) encounters a build error while pip install it on the latest MacOS version (Big Sur).
The script we used:
The error is as follows:
I suspect it might be a pip issue instead of the Python library (ONNX) issue. Has wheel packaging supported the latest macOS (11.0) yet? At least I don't see such tag (cp-38-cp38-macosx_11_0_x86_64) in my local
packaging.list(tags.sys_tags()
.Could anyone help me to take a look at this issue? Thank you!
Reference: onnx/onnx#3114
The text was updated successfully, but these errors were encountered: