osx - python(twisted) gives error in openssl installation in MAC? -


i have installed openssl in mac(v 10.11.3)

# brew upgrade #brew install openssl warning: openssl 1.0.2l installed 

i ran following commands too;

easy_install pyopenssl  easy_install pycrypto 

all these commands installed without issue.

and tried link openssl brew

#brew link openssl 

and getting

warning: refusing link: openssl      linking keg-only openssl means may end linking against insecure,     deprecated system openssl while using headers homebrew's openssl.     instead, pass full include/library paths compiler e.g.:       -i/usr/local/opt/openssl/include -l/usr/local/opt/openssl/lib 

but if try;

 brew link /usr/local/opt/openssl/bin --force (or, **lib**, **include** folders) 

i same locations

error: no available formula name "/usr/local/opt/openssl/bin" 

now when try in python command prompt;

>>> twisted.internet import reactor, endpoints 

i following error

attributeerror: 'module' object has no attribute 'op_no_tlsv1_1' 

full error stack

 file "<stdin>", line 1, in <module>   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/reactor.py", line 38, in <module>     twisted.internet import default   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/default.py", line 56, in <module>     install = _getinstallfunction(platform)   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/default.py", line 50, in _getinstallfunction     twisted.internet.selectreactor import install   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/selectreactor.py", line 18, in <module>     twisted.internet import posixbase   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/posixbase.py", line 18, in <module>     twisted.internet import error, udp, tcp   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/tcp.py", line 28, in <module>     twisted.internet._newtls import (   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/_newtls.py", line 21, in <module>     twisted.protocols.tls import tlsmemorybiofactory, tlsmemorybioprotocol   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/protocols/tls.py", line 63, in <module>     twisted.internet._sslverify import _setacceptableprotocols   file "/library/python/2.7/site-packages/twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/_sslverify.py", line 38, in <module>     tlsversion.tlsv1_1: ssl.op_no_tlsv1_1, attributeerror: 'module' object has no attribute 'op_no_tlsv1_1' >>>  

how can overcome issue?

edit

if try

>>> import openssl 

nothing printed

but if try

>>> import twisted.internet.ssl 

i above mentioned issue.

i have following twisted version installed;

>>> import twisted >>> twisted.__version__ '17.9.0rc1' >>>  

i have overcome issue installing latest version of twisted

#sudo pip install twisted==13.1.0 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -