Module python-magic on/for Windows?
Larry Hale
larzluv at hotmail.com
Sun May 11 20:12:07 EDT 2008
(quoted text below my reply)
THANK YOU SO MUCH, Michael!
Criminitly! Figures! HA! I had it the WHOLE TIME, but didn't
realize it! ;) (As mentioned, I had FILE installed from GnuWin32.)
DUH! I just neglected to do a search for "magic1.dll"... the most
obvious of the obvious!
I copied it from C:\Program Files\GnuWin32\bin\magic1.dll to C:
\Program Files\python25\libs.
Imports fine now. (I'll *test* it later. Then write-up my HowTo... I
think I'll even see if I can make an EGG for others... SOUNDS "easy"
with EasyInstall [http://peak.telecommunity.com/DevCenter/
EasyInstall]... I'll -see-... :) )
Ah, sometimes one CAN'T see the forest for the trees; a few hours
hacking away at getting things going to THIS point will do it to ya...
err, or at least "to me"! :D
Thanks, again, Michael...
-Larry
On May 11, 11:34 am, Michael Torrie <torr... at gmail.com> wrote:
> 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=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