Skip to content
Advertisement

Tag: python-magic

Missing files for `magic` library on Windows

I need to get mime type for some files on windows, so i’ve installed python-magic (on 32-bit python 2.7.3). It depends on unix magic library. Author instructs to get regex2.dll, zlib1.dll and magic1.dll from gnuwin32 project. So i saved the files to a folder and added the folder to my system PATH. Now when i execute magic methods, i get

Advertisement