[Bug 194521] New: awscli breaks with "'module' object has no attribute 'ssl_wrap_socket" after installing py27-ndg_httpsclient-0.3.2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 22 00:05:54 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194521

            Bug ID: 194521
           Summary: awscli breaks with "'module' object has no attribute
                    'ssl_wrap_socket" after installing
                    py27-ndg_httpsclient-0.3.2
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: miguelmclara at gmail.com

I needed to install py27-ndg_httpsclient-0.3.2 to have sni support on httpie,
but after this aws stoped working.

[miguelc at r2d2]~% aws --version                                             
[14/4301]
Traceback (most recent call last):
  File "/usr/local/bin/aws", line 15, in <module>
    import awscli.clidriver
  File "/usr/local/lib/python2.7/site-packages/awscli/clidriver.py", line 16,
in <mod
ule>
    import botocore.session
  File "/usr/local/lib/python2.7/site-packages/botocore/session.py", line 27,
in <mod
ule>
    import botocore.credentials
  File "/usr/local/lib/python2.7/site-packages/botocore/credentials.py", line
27, in 
<module>
    from botocore.utils import InstanceMetadataFetcher, parse_key_val_file
  File "/usr/local/lib/python2.7/site-packages/botocore/utils.py", line 18, in
<modul
e>
    from .vendored import requests
  File
"/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/__init__.p$",
line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File
"/usr/local/lib/python2.7/site-packages/botocore/vendored/requests/packages/u$llib3/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'


==== After removing ndg_httpsclient it works again ====

[miguelc at r2d2]~% sudo pkg remove py27-ndg_httpsclient-0.3.2
Password:
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):

Installed packages to be REMOVED:
        py27-ndg_httpsclient-0.3.2

The operation will free 191 KB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deleting py27-ndg_httpsclient-0.3.2: 100%
[miguelc at r2d2]~% aws --version
aws-cli/1.3.20 Python/2.7.8 FreeBSD/10.1-PRERELEASE

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list