-
Notifications
You must be signed in to change notification settings - Fork 280
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
ImportError: failed to find libmagic. Check your installation #145
Comments
Yes, your %PATH% environment variable. |
Now i have this Error: ``
I install python-magic using What's wrong?
|
No, the magic_file argument won't help here. It's failing to load the libmagic dll for some reason. I generally like to use the "Process Monitor" utility from sysinternals to figure out where it's trying to load DLLs from. Either it's looking in the wrong place, or there's a missing dependency of those dlls. |
Is the problem solved? |
@Ayla93: to be clear, this is a local install issue rather than a bug in the library. Are you seeing the same issue as @CarlGalloy ? |
Where is the magic1.DLL and regex located in windows 10. I'm having the same import error. |
Those are 3rd party libraries you'll have to install. The README file includes some pointers to them, and I've updated it with more info. |
For me i faced this issue when I import magic library in my django application. I solved it by " brew install libmagic" installing libmagic on the system level |
I had this issue with official python docker (python:3.7-slim-buster), so I fixed it with |
I solve this problem with "pip install python-magic-bin" |
Yep, @ashishnitinpatil your comment was very helpful. The official python docker images is missing the (libmagic-dev for Debian based distro, headers, aka dynamic libraries files etc.), so we need to install |
Hi.
In dependency section mention that "magic1.dll, regex2.dll, and zlib1.dll onto your PATH from the Binaries " where exactly PATH is? ( System Environment PATH? )
The text was updated successfully, but these errors were encountered: