[Python-porting] Different versions of six.py? Where is six.moves.html_client?

Martin Fei martin at familyfei.com
Tue Mar 31 11:57:12 CEST 2015


Fixed for me for now by getting the sources and installing the correct
version from there.

On Tue, Mar 31, 2015 at 10:57 AM Martin Fei <martin at familyfei.com> wrote:

> Hi There,
>
>
> I just joined the list and am still finding my way around.
>
>
> In my attempt to use python-jenkins for some nice Jenkins action with
> Python, I stumble across the dreaded "ImportError: No module named
> http_client" error. It appears my six is broken:
>
> $ python
> Python 2.7.6 (default, Sep 9 2014, 15:04:36)
> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import six
> >>> import six.moves
> >>> import six.moves.http_client
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named http_client
>
> Now why I seek this mailing list is, the source on Bitbucket does map
> six.moves.http_client:
> https://bitbucket.org/gutworth/six/src/784c6a213c4527ea18f86a800f51bf16bc1df5bc/six.py?at=default
>
> But why does the actual build on https://pypi.python.org/pypi/six/ not
> contain the lines? In fact, the two files look completely different. Am I
> blind? Do you see the same or would you like a diff?
>
> Greetings,
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20150331/67e35292/attachment.html>


More information about the Python-porting mailing list