From martin at familyfei.com Tue Mar 31 10:58:00 2015 From: martin at familyfei.com (Martin Fei) Date: Tue, 31 Mar 2015 08:58:00 +0000 Subject: [Python-porting] Different versions of six.py? Where is six.moves.html_client? Message-ID: 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 "", line 1, in 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: From martin at familyfei.com Tue Mar 31 11:57:12 2015 From: martin at familyfei.com (Martin Fei) Date: Tue, 31 Mar 2015 09:57:12 +0000 Subject: [Python-porting] Different versions of six.py? Where is six.moves.html_client? In-Reply-To: References: Message-ID: 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 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 "", line 1, in > 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: