[Python-porting] ImportError: No module named urllib

Lennart Regebro regebro at gmail.com
Fri May 23 22:44:25 CEST 2014


On Fri, May 23, 2014 at 10:06 PM, Ned Deily <nad at acm.org> wrote:
> It's easy to overlook: the relevant part of the traceback is earlier:
>
>> > line 34, in <module>
>> >     from six.moves.urllib import parse
>> > ImportError: No module named urllib
>
> So it's not the standard library urllib module, rather part of the six
> compatibility lib.

Ah, well, yes you are right, I thought that pointed to the urllib
module, but it doesn't, it points to a sort of proxy. That perhaps
means that it is that the six module somehow failed during
initialization?

//Lennart


More information about the Python-porting mailing list