python-magic WindowsError: [Error 193] %1 is not a valid Win32 application\r -


hi i'm trying use python-magic on windows 8 when try import command import magic gives me error windowserror: [error 193] %1 not valid win32 application\r have tried both 64-bit , 32-bit version of python 2.7.10 error.

tnx

found here: https://github.com/ahupp/python-magic/issues/24k

resolved installing 64-bit version of cygwin (http://cygwin.com/install.html) , copying following list of dlls \bin c:\windows\system32:

  • cygwin1.dll
  • cygz.dll
  • cygmagic-1.dll (don't forget rename magic1.dll)

Comments