[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-porting
Subject:    Re: [Python-porting] Different versions of six.py? Where is six.moves.html_client?
From:       Martin Fei <martin () familyfei ! com>
Date:       2015-03-31 9:57:12
Message-ID: CACw__QVZ2u2zdyvi97G7kobKs9oDUhkPMS8DUnhU+9dAaCGPNg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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
>

[Attachment #5 (text/html)]

<div dir="ltr">Fixed for me for now by getting the sources and installing the correct \
version from there.<br></div><br><div class="gmail_quote">On Tue, Mar 31, 2015 at \
10:57 AM Martin Fei &lt;<a \
href="mailto:martin@familyfei.com">martin@familyfei.com</a>&gt; wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi There,<br><br><br>I just joined the list \
and am still finding my way around.<br><br><br>In my attempt to use python-jenkins \
for some nice Jenkins action with Python, I stumble across the dreaded \
&quot;ImportError: No module named http_client&quot; error. It appears my six is \
broken:<br><br>$ python <br>Python 2.7.6 (default, Sep 9 2014, 15:04:36) <br>[GCC \
4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin <br>Type \
&quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; \
for more information. <br>&gt;&gt;&gt; import six <br>&gt;&gt;&gt; import six.moves \
<br>&gt;&gt;&gt; import six.moves.http_client <br>Traceback (most recent call last): \
<br>File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; <br>ImportError: No \
module named http_client<br><div><br></div><div>Now why I seek this mailing list is, \
the source on Bitbucket does map six.moves.http_client:  <a \
href="https://bitbucket.org/gutworth/six/src/784c6a213c4527ea18f86a800f51bf16bc1df5bc/six.py?at=default" \
target="_blank">https://bitbucket.org/gutworth/six/src/784c6a213c4527ea18f86a800f51bf16bc1df5bc/six.py?at=default</a></div><div><br></div><div>But \
why does the actual build on <a href="https://pypi.python.org/pypi/six/" \
target="_blank">https://pypi.python.org/pypi/six/</a> 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?</div><div><br></div><div>Greetings,</div><div>Martin</div></div></blockquote></div>




_______________________________________________
Python-porting mailing list
Python-porting@python.org
https://mail.python.org/mailman/listinfo/python-porting


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic