-
Notifications
You must be signed in to change notification settings - Fork 145
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
Auditwheel not finding libraries already inside wheel #285
Comments
I guess I can turn this issue into a feature request. That wheel linked above is in fact a valid wheel already. You can pip install it and use it. If you unzip it, and run $ ldd avogadro/core.cpython-38-x86_64-linux-gnu.so
...
libAvogadroCore.so.1 => $PWD/avogadro/libAvogadroCore.so.1 (0x00007fb2cabfd000)
... (note I replaced the path to $PWD with $PWD) That is because the RPATH is set to $ORIGIN in those python modules. So they can find the libraries since the libraries So I guess the feature request would be to check if the RPATH is set, and if it is, and Otherwise, if I have other libraries I need auditwheel to find, I have to come up with work-arounds unzip avogadro-1.93.1.dev134+g71afbae-cp38-cp38-linux_x86_64.whl
export LD_LIBRARY_PATH=$PWD/avogadro:$LD_LIBRARY_PATH
auditwheel repair avogadro-1.93.1.dev134+g71afbae-cp38-cp38-linux_x86_64.whl |
Thanks for the reproducer.
You can fix libAvogadro*.so* RPATH so they can be loaded on their own (not tested).
|
Thank you very much for looking through this, @mayeut. This information is very helpful. I haven't tested this yet, but I'll assume it's correct and close this issue. |
Hi there,
I'm using cibuildwheel to build some wheels for one of my projects. This builds some python bindings for C++ using pybind11. When
auditwheel repair
runs on Linux, I get this error:However, the library is actually already inside the wheel. If I run these commands:
It succeeds. I'm also able to successfully run tests after the wheel is audited. Any idea what could be going on?
The wheel is attached below with a
.zip
extension instead of.whl
(since GitHub insists on a.zip
extension). You can repeat this behavior by runningauditwheel repair
on the wheel from thequay.io/pypa/manylinux2010_x86_64
docker image.The
auditwheel -v show
output is attached here.avogadro-1.93.1.dev134+g71afbae-cp38-cp38-linux_x86_64.zip
Looks like auditwheel 3.3.1 via python 3.7 is being used.
The text was updated successfully, but these errors were encountered: