-
Notifications
You must be signed in to change notification settings - Fork 303
Closed
Description
Recently, I've been having problems getting python-magic to work on Windows. I have libmagic installed, along with all the necessary DLLs (including magic1.dll) but I kept getting Windows 126 errors(module not found). I tried specifying the DLL in the PATH or passing it into the constructor with no luck.
In the end I decided to rename magic1.dll to magic.dll and it started working.
After looking at the source it appears that python-magic tries to load either magic.dll or magic1.dll, however if magic.dll is not found, Windows directly throws an 126 error and doesn't look for magic1.dll. It could be worth considering another, more reliable way of finding the proper DLL.
acoirazza
Metadata
Metadata
Assignees
Labels
No labels