question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

botocore explodes when installed alongside pyOpenSSL, ndg-httpsclient and pyasn1

See original GitHub issue

I’m not an expert with boto or botocore, so apologies in advance if this is a duplicate or whatever, but I can’t find anything related in the issues on GH. To reproduce, create a new virtualenv and do the following:

pip install pyOpenSSL==0.14 ndg-httpsclient==0.3.2 pyasn1==0.1.7 botocore==0.38
python
>>> import botocore.vendored.requests

Output:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bhuber/envs/sandbox/local/lib/python2.7/site-packages/botocore/vendored/requests/__init__.py", line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/home/bhuber/envs/sandbox/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/contrib/pyopenssl.py", line 55, in <module>
    orig_connectionpool_ssl_wrap_socket = connectionpool.ssl_wrap_socket
AttributeError: 'module' object has no attribute 'ssl_wrap_socket'
>>> 

This is a direct manifestation of a bug closed in requests==2.1.0: https://github.com/kennethreitz/requests/issues/1732 . Updating the requests lib would probably fix it.

As a workaround, pip install pyopenssl==0.12 currently fixes it for me.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
guss77commented, Jan 21, 2015

I have the same problem with installing awscli on Ubuntu 15.04. I worked around by doing:

sudo apt-get purge python-ndg-httpsclient
sudo pip install ndg-httpsclient==0.3.1
0reactions
memosstilvicommented, Sep 8, 2015

@guss77 worked on ubuntu 14.04, Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Guide - WireCloud - Read the Docs
This section describes all the requirements of a basic WireCloud installation. However, these dependencies are not meant to be installed manually in this...
Read more >
Private Python Package Repository | by Vithulan MV - Medium
Python downloads its dependencies from PyPI repositories by default. It contains latest versions (can be stable or not) and various amount ...
Read more >
Databricks Runtime 3.0 (Unsupported)
With this feature, users can obtain the exception records, reasons and time from the exception logs without interrupting the jobs.
Read more >
Compare Packages Between Distributions - DistroWatch.com
Complete summaries of the Gentoo Linux and Debian projects are available. Note: In case where multiple versions of a package are shipped with...
Read more >
Lintian Reports by Package - Debian
... arcanist-clang-format-linter · arc-gui-clients · arch-install-scripts · archivemount · archmage · archmbox · arch-test · archvsync · arcp · arc-theme ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found