-
Notifications
You must be signed in to change notification settings - Fork 32
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
import libarchive.public error AttributeError: dlsym(0x7fe20861a170, archive_read_open_filename_w): symbol not found #31
Comments
I see in the code here: https://github.com/dsoprea/PyEasyArchive/blob/master/libarchive/library.py#L10 that the filename is hardcoded to: libarchive.so . But on MacOS there's only the files libarchive.13.dylib and libarchive.a . |
Further debugging:
So the library does get loaded properly in library.py on line 51 with the correct environment variable set, but then fails further. |
Ok...facepalm... somehow I got on this page through https://pydigger.com/pypi/libarchive thinking this was the Python libarchive library. Code is pretty similar, but not quite the same. Ultimately, the problem was that I had installed this lib: https://github.com/Changaco/python-libarchive-c Which is looking for OS Environment variable LIBARCHIVE . So the following makes everything work:
Can someone please update the README and clearly articulate for other idiots like myself :) that this is NOT libarchive-c ? :) Thanks! Cedric |
Similar to issue #16 but with a different function where it goes bad so raising this as a separate one just in case.
Been banging my head over this the entire day... and can't see it anymore. This doesn't seem to be a libarchive-c Python issue perse, but let's get it investigated and documented here because it seems a lot of users are stuck with this (according to my Google-fu [or lack thereof])
Environment:
MacOS 10.14.1
Python 3.7.0 using a venv with libarchive-c==2.8
libarchive installed via brew.
Used the brew_find_libarchive script to locate where the devil brew put it: /usr/local/Cellar/libarchive/3.3.3/lib
Then tried different iterations and variations of setting:
Each and every time the error is:
Any hints are more than welcome, mind that the steps outlined in issue #16 are already tried (and failed).
How can I help providing better info to troubleshoot this?
The text was updated successfully, but these errors were encountered: