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

Doesn't work if using musl libc: find_library is broken #114

Open
thomwiggers opened this Issue Sep 4, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@thomwiggers
Copy link

thomwiggers commented Sep 4, 2016

I'm trying to construct a Docker image based on Alpine Linux, which uses the musl libc implementation. There is an existing issue in python that causes the find_library call to fail, which is rather unfortunate.

It's also reported on the Docker image repository. It's not really an issue with this library I guess, but this report could be helpful to others coming here with the same issue.

@thomwiggers thomwiggers changed the title Doesn't work if using musl libc Doesn't work if using musl libc: find_library is broken Sep 4, 2016

@ahupp

This comment has been minimized.

Copy link
Owner

ahupp commented Sep 6, 2016

I'm not following the issue. What would the fix look like?

@thomwiggers

This comment has been minimized.

Copy link
Author

thomwiggers commented Sep 7, 2016

This issue is really the result of a bug in Python, but this library could work around it (although I'd understand it if you wouldn't want to).
I patched magic.py by making line 150 just return libmagic.so.1, but that is perhaps a bit messy. You could do what ctypes.utils.find_library should probably do: just look in /usr/lib/ if libmagic.so exists.

@expl0ratory

This comment has been minimized.

Copy link

expl0ratory commented Jun 1, 2017

Is this package not maintained anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment