Module python-magic on/for Windows?

Michael Torrie torriem at gmail.com
Sun May 11 12:34:50 EDT 2008


Larry Hale wrote:
> Now I *presume* my problem (at this point) is that I need to have
> libmagic named as "magic1.dll" -wherever- this module is looking for
> it.  I'm just not sure, let alone if this is true, WHERE Python/
> modules expect to find such things.
> 
> Also, which version(s)/file(s) should be placed where, or...??

The dll you are looking for is here:

http://downloads.sourceforge.net/gnuwin32/file-4.21-bin.zip?modtime=1180175868&big_mirror=1

The .dll.a file you mention is just a linker stub for when you want to
compile against it (as you are doing when building python-magic).

The magic1.dll file in the file-4.21-bin.zip package should be placed
anywhere in the path.  Since you'll be using it with python, you could
probably stick it in the python25/bin folder (where ever your python
system is installed).





More information about the Python-list mailing list