You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other sources of the libraries in the past have been [File for Windows](http://gnuwin32.sourceforge.net/packages/file.htm) . You will need to copy the file `magic` out of `[binary-zip]\share\misc`, and pass its location to `Magic(magic_file=...)`.
68
-
69
-
If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64. Newer version can be found here: https://github.com/nscaife/file-windows.
64
+
You'll need DLLs for libmagic. @julian-r maintains a pypi package with the DLLs, you can fetch it with:
70
65
66
+
$ pip install python-magic-bin
71
67
72
68
### OSX
73
69
@@ -83,7 +79,8 @@ If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries
83
79
84
80
- 'WindowsError: [Error 193] %1 is not a valid Win32 application':
85
81
Attempting to run the 32-bit libmagic DLL in a 64-bit build of
86
-
python will fail with this error. Here are 64-bit builds of libmagic for windows: https://github.com/pidydx/libmagicwin64
82
+
python will fail with this error. Here are 64-bit builds of libmagic for windows: https://github.com/pidydx/libmagicwin64.
83
+
Newer version can be found here: https://github.com/nscaife/file-windows.
87
84
88
85
- 'WindowsError: exception: access violation writing 0x00000000 ' This may indicate you are mixing
89
86
Windows Python and Cygwin Python. Make sure your libmagic and python builds are consistent.
0 commit comments