ahupp / python-magic

A python wrapper for libmagic
Other
2.59k stars 280 forks source link

Adding libmagic to python-magic wheel on PyPI #295

Closed youngcho22 closed 4 months ago

youngcho22 commented 11 months ago

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?

ahupp commented 11 months ago

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.

NTC4818 commented 7 months ago

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

ahupp commented 4 months ago

@NTC4818 can you give an example?

ahupp commented 4 months ago

Dupe of #294