'AWSHTTPSConnection' object has no attribute 'ssl_context'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnocchi (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Gnocchi shows the following error 'AWSHTTPSConnec
ii python-gnocchi 3.1.9-0ubuntu1~
ii python-openssl 16.2.0-1~cloud0 all Python 2 wrapper around the OpenSSL library
2018-03-22 12:17:58.663441 mod_wsgi (pid=18370): Exception occurred processing WSGI script '/usr/lib/
2018-03-22 12:17:58.663464 Traceback (most recent call last):
2018-03-22 12:17:58.663476 File "/usr/lib/
2018-03-22 12:17:58.663493 resp = self.call_func(req, *args, **self.kwargs)
2018-03-22 12:17:58.663500 File "/usr/lib/
2018-03-22 12:17:58.663510 return self.func(req, *args, **kwargs)
...
2018-03-22 12:17:58.664019 File "/usr/lib/
2018-03-22 12:17:58.664027 conn.connect()
2018-03-22 12:17:58.664032 File "/usr/lib/
2018-03-22 12:17:58.664039 if self.ssl_context is None:
2018-03-22 12:17:58.664050 AttributeError: 'AWSHTTPSConnec
Following the suggestion of /stackoverflow. com/questions/ 45821085/ awshttpsconnect ion-object- has-no- attribute- ssl-context
https:/
I downgraded resquests python package to 2.12 using pip:
sudo pip install requests==2.12
pip show requests python- requests. org lib/python2. 7/dist- packages
Name: requests
Version: 2.12.0
Summary: Python HTTP for Humans.
Home-page: http://
Author: Kenneth Reitz
Author-email: <email address hidden>
License: Apache 2.0
Location: /usr/local/
Requires:
It seems a workaround bat not a the best solution.