Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

2008-10-26 Thread Larry Hale
Thank you, again, Michael, for all your help many months ago. I *FINALLY* got a HowTo done up; please see http://wiki.python.org/moin/HowTo/FileMagic I've also emailed Mr. Hupp to see if he'll re-post the SWIG version; he's working on a newer binding (forget... ctypes??) and once that one's work

Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

2008-10-26 Thread Larry Hale
Thank you, again, Michael, for all your help many months ago. I *FINALLY* got a HowTo done up; please see http://wiki.python.org/moin/HowTo/FileMagic I've also emailed Mr. Hupp to see if he'll re-post the SWIG version; he's working on a newer binding (forget... ctypes??) and once that one's work

Help Tracing urllib2 Error, Please?

2008-07-19 Thread Larry Hale
Since it seems I have a "unique" problem, I wonder if anyone could point me in the general/right direction for tracking down the issue and resolving it myself. See my prior post @ http://groups.google.com/group/comp.lang.python/browse_thread/thread/44775994a6b55161?hl=en# for more info. (Python

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
is <[EMAIL PROTECTED]> wrote: > On Jul 17, 6:40 pm, Larry Hale <[EMAIL PROTECTED]> wrote: > > > Err, the line above should be: > > > proxy_handler = urllib2.ProxyHandler( { "http": "http:// > > myusername:[EMAIL PROTECTED]:3128" } ) >

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
is <[EMAIL PROTECTED]> wrote: > On Jul 17, 6:40 pm, Larry Hale <[EMAIL PROTECTED]> wrote: > > > Err, the line above should be: > > > proxy_handler = urllib2.ProxyHandler( { "http": "http:// > > myusername:[EMAIL PROTECTED]:3128" } ) >

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-18 Thread Larry Hale
is <[EMAIL PROTECTED]> wrote: > On Jul 17, 6:40 pm, Larry Hale <[EMAIL PROTECTED]> wrote: > > > Err, the line above should be: > > > proxy_handler = urllib2.ProxyHandler( { "http": "http:// > > myusername:[EMAIL PROTECTED]:3128" } ) >

Re: Python Behind a Squid Corporate Proxy on Windows

2008-07-17 Thread Larry Hale
Err, the line above should be: proxy_handler = urllib2.ProxyHandler( { "http": "http:// myusername:[EMAIL PROTECTED]:3128" } ) (Sorry! :) -- http://mail.python.org/mailman/listinfo/python-list

Python Behind a Squid Corporate Proxy on Windows

2008-07-17 Thread Larry Hale
Greetings, Pythonistas! My employer has a Squid Proxy between my Python programs and The Internet. I've searched high-and-low, and can only find examples online of how to do basic authentication to connect TO an external Web Server, but not how to go THROUGH a (corporate) Proxy, thus my question

Re: Module python-magic on/for Windows?

2008-05-12 Thread Larry Hale
On May 12, 1:34 am, Larry Hale <[EMAIL PROTECTED]> wrote: > The file source (previously linked from http://hupp.org/adam/hg/python-magic/) > has the man pages... Err... I meant "http://downloads.sourceforge.net/gnuwin32/file-4.21- bin.zip?modtime=1180175868&big_m

Re: Module python-magic on/for Windows?

2008-05-12 Thread Larry Hale
On May 12, 1:34 am, Larry Hale <[EMAIL PROTECTED]> wrote: > The file source (previously linked from http://hupp.org/adam/hg/python-magic/) > has the man pages... Err... I meant "http://downloads.sourceforge.net/gnuwin32/file-4.21- bin.zip?modtime=1180175868&big_m

Re: Module python-magic on/for Windows?

2008-05-11 Thread Larry Hale
On May 11, 11:42 pm, Larry Hale <[EMAIL PROTECTED]> wrote: > THANKS, AGAIN, for the reply! :) > > Okay, now I -really- feel silly... :> > > So, when I was going to try what you'd suggested, I noticed something > peculiar: I hadn't "changed" an

Re: Module python-magic on/for Windows?

2008-05-11 Thread Larry Hale
On May 11, 11:42 pm, Larry Hale <[EMAIL PROTECTED]> wrote: > THANKS, AGAIN, for the reply! :) > > Okay, now I -really- feel silly... :> > > So, when I was going to try what you'd suggested, I noticed something > peculiar: I hadn't "changed" an

Re: Module python-magic on/for Windows?

2008-05-11 Thread Larry Hale
eplies, Michael, and I'm off to work _with_ the module now, then work-up my HowTo (and experiment with making an "egg"?? ;) )... Caio! -Larry :P :) On May 11, 11:09 pm, Michael Torrie <[EMAIL PROTECTED]> wrote: > Larry Hale wrote: > > ALSO: I've even tried p

Re: Module python-magic on/for Windows?

2008-05-11 Thread Larry Hale
On May 10, 11:41 pm, Larry Hale <[EMAIL PROTECTED]> wrote: > I've heard tell of a Python binding for libmagic (file(1) *nixy > command; seehttp://darwinsys.com/file/). Generally, has anybody > built this and worked with it under Windows? > > The only thing I've

Re: Saving an audio file's waveform into an image

2008-05-11 Thread Larry Hale
or my Google search of http://www.google.com/search?hl=en&q=python+snack+module&btnG=Google+Search seemed to show the same thing.) The short answer is: Huh?/What?/Why? Why not put the picture + sound ==> video file. (Sure the image remains static, but there's the Soundtrack with it! ;) ) Cheers, -Larry Hale -- http://mail.python.org/mailman/listinfo/python-list

Re: list object

2008-05-11 Thread Larry Hale
rpret this as if you're attempting to "call" the list object (["a", "b", ...]) as if it were a function/method Indeed, the "(1)" is what's causing the problem, but it's -because- the list *object* is, well, "not callable". :) As an aside, see what "li" contains if you do: li = ["a", "b", "mpilgrim", "z", "example"][1] ;) Cheers! -Larry Hale -- http://mail.python.org/mailman/listinfo/python-list

Re: Orlando Florida Python Tutor Needed

2008-05-11 Thread Larry Hale
other than explicitly DOING what they do, which would be [1] messier and/or [2] non-transparent/duplicative, I sadly have no alternative thought[s]... ;) ) Cheers, -Larry Hale -- http://mail.python.org/mailman/listinfo/python-list

Re: Module python-magic on/for Windows?

2008-05-11 Thread Larry Hale
After putting the magic1.dll file to C:\Program Files\Python25\DLLs (looking at the directory structure, that seemed as good a place as any), now I can *import* the module, but... >>> import magic >>> test = magic.Magic() Traceback (most recent call last): File "", line 1, in

Re: Module python-magic on/for Windows?

2008-05-11 Thread Larry Hale
ommunity.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,

Module python-magic on/for Windows?

2008-05-10 Thread Larry Hale
E Python/ modules expect to find such things. Also, which version(s)/file(s) should be placed where, or...?? Thanks for any/all help/pointers. I apologize up-front if I left out any pertinent info; I'm paranoid about putting in too much (and some that may be worthless) already... :) Cheers, Larry Hale -- http://mail.python.org/mailman/listinfo/python-list