3867: importerror with http_client

kevin.mic**********@gmai***** (Google Code) (Is this you? Claim this profile.)
May 13, 2015
What version are you running?
RBTools==0.7.2

What's the URL of the page containing the problem?
none, RBTools

What steps will reproduce the problem?
1. sudo easy_install -U RBTools
2. rbt


What is the expected output? What do you see instead?
Expected output was for the tool to run.

Actual output:
COTNPL-0P8G3QN:repos mikelloyd$ rbt
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.2', 'console_scripts', 'rbt')()
  File "build/bdist.macosx-10.10-intel/egg/pkg_resources/__init__.py", line 552, in load_entry_point
  File "build/bdist.macosx-10.10-intel/egg/pkg_resources/__init__.py", line 2672, in load_entry_point
  File "build/bdist.macosx-10.10-intel/egg/pkg_resources/__init__.py", line 2345, in load
  File "build/bdist.macosx-10.10-intel/egg/pkg_resources/__init__.py", line 2351, in resolve
  File "/Library/Python/2.7/site-packages/RBTools-0.7.2-py2.7.egg/rbtools/commands/__init__.py", line 16, in <module>
    from rbtools.api.client import RBClient
  File "/Library/Python/2.7/site-packages/RBTools-0.7.2-py2.7.egg/rbtools/api/client.py", line 5, in <module>
    from rbtools.api.transport.sync import SyncTransport
  File "/Library/Python/2.7/site-packages/RBTools-0.7.2-py2.7.egg/rbtools/api/transport/sync.py", line 4, in <module>
    from rbtools.api.factory import create_resource
  File "/Library/Python/2.7/site-packages/RBTools-0.7.2-py2.7.egg/rbtools/api/factory.py", line 3, in <module>
    from rbtools.api.resource import (CountResource, ItemResource,
  File "/Library/Python/2.7/site-packages/RBTools-0.7.2-py2.7.egg/rbtools/api/resource.py", line 12, in <module>
    from rbtools.api.request import HttpRequest
  File "/Library/Python/2.7/site-packages/RBTools-0.7.2-py2.7.egg/rbtools/api/request.py", line 14, in <module>
    from six.moves.http_client import UNAUTHORIZED
ImportError: No module named http_client

What operating system are you using? What browser?
OS X 10.10.3 (14D136)

Please provide any additional information below.
Using default python install, version 2.7.6. Version 3.4.3 is also installed, but is not default.
david
#1 david
What version of "six" is installed?
  • +NeedInfo
#2 kevin.mic**********@gmai***** (Google Code) (Is this you? Claim this profile.)
COTNPL-0P8G3QN:tomcat mikelloyd$ pip freeze | grep six
six==1.9.0

I read https://github.com/kevin1024/vcrpy/issues/131 about this issue, but
I'm not sure if it applies or not. Below are my versions; while I have
virtualenv installed, I am not using it for rbt, as I am testing
integration with various components.

COTNPL-0P8G3QN:tomcat mikelloyd$ 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.

/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.pyc

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named http_client

COTNPL-0P8G3QN:tomcat mikelloyd$ pip freeze
/Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79:
InsecurePlatformWarning: A true SSLContext object is not available. This
prevents urllib3 from configuring SSL appropriately and may cause certain
SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
.
  InsecurePlatformWarning
altgraph==0.10.2
bdist-mpkg==0.5.0
bonjour-py==0.3
macholib==1.5.1
matplotlib==1.3.1
modulegraph==0.10.4
numpy==1.8.0rc1
pbr==0.11.0
py2app==0.7.3
pyobjc-core==2.5.1
pyobjc-framework-Accounts==2.5.1
pyobjc-framework-AddressBook==2.5.1
pyobjc-framework-AppleScriptKit==2.5.1
pyobjc-framework-AppleScriptObjC==2.5.1
pyobjc-framework-Automator==2.5.1
pyobjc-framework-CFNetwork==2.5.1
pyobjc-framework-Cocoa==2.5.1
pyobjc-framework-Collaboration==2.5.1
pyobjc-framework-CoreData==2.5.1
pyobjc-framework-CoreLocation==2.5.1
pyobjc-framework-CoreText==2.5.1
pyobjc-framework-DictionaryServices==2.5.1
pyobjc-framework-EventKit==2.5.1
pyobjc-framework-ExceptionHandling==2.5.1
pyobjc-framework-FSEvents==2.5.1
pyobjc-framework-InputMethodKit==2.5.1
pyobjc-framework-InstallerPlugins==2.5.1
pyobjc-framework-InstantMessage==2.5.1
pyobjc-framework-LatentSemanticMapping==2.5.1
pyobjc-framework-LaunchServices==2.5.1
pyobjc-framework-Message==2.5.1
pyobjc-framework-OpenDirectory==2.5.1
pyobjc-framework-PreferencePanes==2.5.1
pyobjc-framework-PubSub==2.5.1
pyobjc-framework-QTKit==2.5.1
pyobjc-framework-Quartz==2.5.1
pyobjc-framework-ScreenSaver==2.5.1
pyobjc-framework-ScriptingBridge==2.5.1
pyobjc-framework-SearchKit==2.5.1
pyobjc-framework-ServiceManagement==2.5.1
pyobjc-framework-Social==2.5.1
pyobjc-framework-SyncServices==2.5.1
pyobjc-framework-SystemConfiguration==2.5.1
pyobjc-framework-WebKit==2.5.1
pyOpenSSL==0.13.1
pyparsing==2.0.1
python-dateutil==1.5
pytz==2013.7
RBTools==0.7.2
requests==2.7.0
scipy==0.13.0b1
six==1.9.0
stevedore==1.4.0
Twisted==13.2.0
virtualenv==12.1.1
virtualenv-clone==0.2.5
virtualenvwrapper==4.5.1
xattr==0.6.4
zope.interface==4.1.1
#3 kevin.mic**********@gmai***** (Google Code) (Is this you? Claim this profile.)
Reverting to six 1.6.0 resolved the issue for me. It looks to be an issue with Python six, not rbt.
#4 kevin.mic**********@gmai***** (Google Code) (Is this you? Claim this profile.)
Uninstalled rbt after some failures, reinstalled. Ran into original issue. Reverted six to 1.6.0, now rbt is throwing the same errors.
david
#5 david
I don't really know what to say--obviously, six.moves.http_client is supposed to exist. Something is weird with your environment but I can't tell you what.
  • -NeedInfo
    +ThirdParty