首页 博客 娱乐 图库 新闻 体育 视频

AttributeError: 'module' object has no attribute 'SSLContext'


raceback (most recent call last): File "viki_mq_service.py", line 21, in 
         
           File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 360, in __init__ self._impl = self._create_connection(parameters, _impl_class) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 445, in _create_connection ioloop.poll() File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 576, in poll self._poller.poll() File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 1200, in poll self._dispatch_fd_events(fd_event_map) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 904, in _dispatch_fd_events handler(fileno, events) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/utils/selector_ioloop_adapter.py", line 391, in _on_reader_writer_fd_events callbacks.writer() File "/usr/local/Python27/lib/python2.7/site-packages/pika/diagnostic_utils.py", line 53, in log_exception_func_wrap return func(*args, **kwargs) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/utils/io_services_utils.py", line 353, in _on_writable self._report_completion(result) File "/usr/local/Python27/lib/python2.7/site-packages/pika/diagnostic_utils.py", line 53, in log_exception_func_wrap return func(*args, **kwargs) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/utils/io_services_utils.py", line 286, in _report_completion self._on_done(result) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/utils/connection_workflow.py", line 400, in _on_tcp_connection_done on_done=self._on_transport_establishment_done) File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/utils/io_services_utils.py", line 133, in create_streaming_connection on_done=on_done).start() File "/usr/local/Python27/lib/python2.7/site-packages/pika/adapters/utils/io_services_utils.py", line 388, in __init__ if not isinstance(ssl_context, (type(None), ssl.SSLContext)): AttributeError: 'module' object has no attribute 'SSLContext'
         



pip install pika==0.11.0


除非特别注明,本站所有文字均为原创文章,作者:luojie

No Comment

留言

电子邮件地址不会被公开。 必填项已用*标注

感谢你的留言。。。