python-magic icon indicating copy to clipboard operation
python-magic copied to clipboard

Adding libmagic to python-magic wheel on PyPI

Open youngcho22 opened this issue 1 year ago • 2 comments

I know the installation guide explicitly states to install libmagic before the python-magic download, but the fact that there's a wheel binary for python-magic confuses me, since my understanding of wheel binaries is that it's meant to be self-contained.

Is there any plan to add libmagic to python-magic whls in the future, even just for linux and macos? or do not have a wheel at all for this package?

youngcho22 avatar Sep 13 '23 19:09 youngcho22

You aren't alone, this is a regular pain point. Then this library was first uploaded you would generally never ship binaries but the expectation has shifted over time. I just received a PR that sets up the wheels with the shared library, so will review that soon and hopefully fix it.

ahupp avatar Sep 20 '23 17:09 ahupp

Is there any idea why aws lambda might not be accepting this code? The error is that it can't see libmagic, but I am not sure where the mapping is. Any help would be huge

NTC4818 avatar Jan 25 '24 17:01 NTC4818

@NTC4818 can you give an example?

ahupp avatar Apr 17 '24 14:04 ahupp

Dupe of #294

ahupp avatar Apr 17 '24 14:04 ahupp