Correctly installing pyOpenSSL for Python (Windows) -


i'm trying make application automatically updates google plus spreadsheet. in order had set gspread, requires pyopenssl in order work. without it, throws error:

cryptounavailableerror: no crypto library available

using pip, type command:

pip install pyopenssl 

and import using:

from openssl import ssl 

when try run code, receive following error:

importerror: no module named cryptography.hazmat.bindings.openssl.binding

i've tried reinstalling pyopenssl multiple times, , tried reinstalling cryptography dependency (as attempting install previous versions of pyopenssl).

this problem documented few times, solution haven't tried doing fresh install of python, or os.

any suggestions? in advance.

this how solved in ubuntu desktop. in windows need figure out solution real reason problem same both in linux , windows

pyopenssl 14.x+ uses cffi-based cryptography package, maybe cause of issue - cffi needs libffi (or libffi-dev) system package, new non-python dependency.

first this

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev 

and then

pip install cryptography 

note key module here libffi-dev..i think instead of apt-get, can use pip install if have pip installed

in meantime documentation says pyopenssl binding

this “hazardous materials” module. should use if you’re 100% absolutely sure know you’re doing because module full of land mines, dragons, , dinosaurs laser guns.

that's pretty bold warning must say


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -