urlparse import Faillure

Robert Hancock hancock.robert at gmail.com
Mon Oct 13 01:51:29 CEST 2008


On Oct 10, 1:48 pm, Wojtek Walczak <gmin... at bzt.bzt> wrote:
> On Thu, 9 Oct 2008 22:47:58 -0700 (PDT), Robert Hancock wrote:
> >>>> import CGIHTTPServer
> ...
> > ImportError: cannot import name urlparse
>
> ...
> > It points to the third line of the comment.  Any ideas on how to
> > proceed with the debugging?
>
> Have you tried getting rid of this comment? I doubt that
> the comment is a reason of this error, but it seems that
> it shadows the real problem. Moreover, try to import urlparse
> itself and check if you got the pyc file for urlparse.py
> in your */lib/python2.5/ directory.
>
> --
> Regards,
> Wojtek Walczak,http://tosh.pl/gminick/

It turns out that I had a script named urlparse.py in my path in
another directory.  I'm still not sure why the traceback pointed to
the comment.



More information about the Python-list mailing list