Comment 9 for bug 358004

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 358004] Re: launchpadlib scripts break when run under python 2.6

On Fri, 2009-04-24 at 12:16 +0000, Björn Tillenius wrote:
> > python -c 'import httplib2; print httplib2.__path__'
>
> ixia:~> python -c 'import httplib2; print httplib2.__path__'
> /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
> /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
> ['/usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2']

That's odd.

Was this installed by setuptools at some point?

It seems that a new release of httplib2 has not been made with
the python2.6 fix, so any setup.py install will lead to this
error.

If you remove the egg and use the packaged version then you
won't have this issue.

Thanks,

James