Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jottalib 0.5.0 triggers urllib3 bug in Ubuntu 14.04 #118

Open
xiphias256 opened this issue Jul 6, 2016 · 5 comments
Open

jottalib 0.5.0 triggers urllib3 bug in Ubuntu 14.04 #118

xiphias256 opened this issue Jul 6, 2016 · 5 comments
Labels

Comments

@xiphias256
Copy link

Did install with pip on an Ubuntu 14.04 machine, like this
sudo pip install jottalib[scanner]
I've then exported my username and password to the enviroment variables JOTTACLOUD_USERNAME and JOTTACLOUD_PASSWORD
If I try to run any of the jotta-* commands I get this error
jotta-scanner Traceback (most recent call last): File "/usr/local/bin/jotta-scanner", line 9, in <module> load_entry_point('jottalib==0.5.0', 'console_scripts', 'jotta-scanner')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/local/lib/python2.7/dist-packages/jottalib/cli.py", line 38, in <module> from jottalib import JFS, __version__ File "/usr/local/lib/python2.7/dist-packages/jottalib/JFS.py", line 36, in <module> import requests_toolbelt File "/usr/local/lib/python2.7/dist-packages/requests_toolbelt/__init__.py", line 12, in <module> from .adapters import SSLAdapter, SourceAddressAdapter File "/usr/local/lib/python2.7/dist-packages/requests_toolbelt/adapters/__init__.py", line 12, in <module> from .ssl import SSLAdapter File "/usr/local/lib/python2.7/dist-packages/requests_toolbelt/adapters/ssl.py", line 16, in <module> from .._compat import poolmanager File "/usr/local/lib/python2.7/dist-packages/requests_toolbelt/_compat.py", line 22, in <module> from urllib3 import connection ImportError: cannot import name connection

@havardgulldahl
Copy link
Owner

Sadly, this seems to be an issue with the version of urllib3 that Ubuntu 14.04 is shipping.

@havardgulldahl
Copy link
Owner

requests/toolbelt#121

@havardgulldahl
Copy link
Owner

havardgulldahl commented Jul 11, 2016

I will need to investigate a bit. Thanks for your report, @xiphias256

@havardgulldahl havardgulldahl changed the title jottalibs 0.5.0 is broken? Getting errors when executing commands jottalib 0.5.0 triggers urllib3 bug in Ubuntu 14.04 Jul 11, 2016
@havardgulldahl
Copy link
Owner

@xiphias256 Could you please try to run

sudo -H pip install --upgrade requests requests_toolbelt urllib3

@xiphias256
Copy link
Author

Sorry for the long delay. I've upgraded to 16.04 since I reported the issue. It now works (mostly). jotta-scanner is throwing errors, but that is not related to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants