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

A python wrapper for libmagic

Results 62 python-magic issues
Sort by recently updated
recently updated
newest added

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](https://bugs.python.org/issue21622) that causes the `find_library` call to...

Please note that on Windows 7 64bit the dependent DLLs need to be placed in C:\Windows\SysWOW64 (not C:\Windows\System32).

**from_buffer** used to return a bytes object; it now returns a string object; please, document this change.

Environment: Windows 7, Python 2.7, Most recent Cygwin x86 (DLL 2.2.1-1) OK. So I got python-magic running only after moving the Cygwin PATH to the beginning of the %PATH% env.var....

This PR adds a workaround for the discovery of libmagic DLL provided by python-magic-bin in Windows. In this way, the latest version of python-magic can be used in combination with...

Hi @ahupp 👋 This PR builds self-contained wheels as discussed in #233. For Windows users, this renders `python-magic-bin` from @julian-r obsolete. ## pip install these wheels 1. @fpgmaas [published](https://github.com/ahupp/python-magic/pull/294#issuecomment-3327996857) the...

Detecting file type with from_file and from_buffer functions give different results for the same file. From_buffer function recognizes elf binary as shared object. OS: Ubuntu 22.04 ``` Python 3.10.12 (main,...

I have docker based python project. When trying to import **magic** and up my container I'm facing below error `File "/usr/local/lib/python3.11/site-packages/magic/loader.py", line 49, in load_lib raise ImportError('failed to find libmagic....

Tried lots of internal remapping and building with libmagic, but no success. Seems it is looking for a fundamental part of the container that is not there, but I am...

I have the problem, that normal pptx files are recognized as zip MIME type. I tried exporting the Presentation as an Image Presentation, and it works fine. The MIME type...