-
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
KeyError: '.libs' when installing from repaired wheel #7018
Comments
Hello! Thanks for the easy reproducer. I built and extracted your wheel and see:
Per PEP 427:
If you do I manually made the modification to the wheel and was able to install it successfully. |
Thanks for the quick response. I see exactly what you mean; had no idea about the different folder structures within wheels. Interestingly enough, after fixing the uWSGI wheel as you described, all the files do install correctly, but the program can't seem to find the libs when trying to run uwsgi. That would probably be an issue for |
Maybe better as a general question for the packaging category on discuss.python.org. You can also find some discussion in this thread. I'll close this since there isn't any pip action, but please feel free to drop a link here to any further discussions! |
Thanks for the links, those are very relevant discussions. I'm still digging into why uwsgi is not picking up the libs bundled with auditwheel. Will open a new issue in the relevant place if any more info comes to light. |
Environment
Description
Not sure if this is a problem with
pip
,auditwheel
, or the python package. But here goes:When trying to install a wheel that was build from source, and then patched with
auditwheel repair
, pip install fails with the following error:Expected behavior
The wheel should install as expected.
How to Reproduce
The premise is to build a wheel on a specific version of linux/python, patch the wheel with necessary system libs, and then try to install patched wheel on an identical system (without the build dependencies). This process works fine on package
mysqlclient
, however the same process produces the error above for packageuwsgi
. I'm not sure if this is a problem with pip, auditwheel, or uwsgi. However un-repaired wheels install correctly (but don't work obviously due to missing libs).Dockerfile to reproduce:
I have inspected the wheel files manually by unzipping them; everything looks correct, the
.lib
directory is in place as expected contents appear to match entries in RECORDS; etc. This all leads me to believe the problem is inpip
and not inauditwheel
or the python package itself. I have also tried manually running the steps above on different systems, with the same result.I would be happy to troubleshoot further if someone with more knowledge of pip could provide some ideas.
The text was updated successfully, but these errors were encountered: