[Python-porting] ImportError: No module named urllib

Lennart Regebro regebro at gmail.com
Fri May 23 16:35:44 CEST 2014


That's very strange. You are running Python 2.7, but it says that it
can't find urllib. The only reason I can think of it is you are
manipulating the python path, and somehow removed the path to the
standard library.

On Wed, May 21, 2014 at 8:49 PM, Gaurav Gogs
<g.gogs at aol.com.dmarc.invalid> wrote:
> Hi,
>
> I'm trying to use python-novaclient for my openstack project.
>
> Installation is successful but when executing "nova", it give following
> error.
> I've a MAC with maverick as latest OS.
>
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.7/bin/nova", line 6,
> in <module>
>     from novaclient.shell import main
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/novaclient/shell.py",
> line 45, in <module>
>     from novaclient import client
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/novaclient/client.py",
> line 34, in <module>
>     from six.moves.urllib import parse
> ImportError: No module named urllib
>
>
> pip show six
> ---
> Name: six
> Version: 1.6.1
> Location:
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
> Requires:
>
>
> pip show python-novaclient
> ---
> Name: python-novaclient
> Version: 2.17.0
> Location:
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
> Requires: pbr, iso8601, PrettyTable, requests, simplejson, six, Babel
>
>
> Don't know if this is the right place to ask.
>
> Thanks,
>
> Gaurav
>
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> https://mail.python.org/mailman/listinfo/python-porting
>


More information about the Python-porting mailing list