[Cryptography-dev] Error with cryptography 2.5

Paul Kehrer paul.l.kehrer at gmail.com
Fri Feb 22 18:21:41 EST 2019


What version of cffi do you have installed in your environment?

> On Feb 22, 2019, at 4:52 PM, Thomas <thomas.s.wolfsburg at freenet.de> wrote:
> 
> Hello all.
>  
> I have a question about the compatibility of cryptography 2.5
>  
> I use Python 3.4.4 with current packages to create a proxy under the old Windows XP.
> Until now, this has worked flawlessly until and including cryptography 2.4.2.
>  
> With cryptography 2.5 I get an error reported back when running the Python script (see also below).
>  
> File  "C:ProgrammePython34libsite-packagescryptographyhazmatbindingsope
> Nsslbinding.py, "line 14, in <module>
>     From cryptography.hazmat.bindings. _ openssl import ffi, lib
> ImportError: DLL failed load: The specified module was not found.
>  
> Is this a flaw in cryptography?
> Or has support for Python 3.4.4 already been discontinued?
>  
> Can I do something to continue using current packages of cryptography?
> What else needs to be installed?
>  
> Thanks and regards
>  
> Thomas Schulze
>  
>  
>  
>  
> (Original Text in German)
>  
> Ich habe eine Frage zur Kompatibilität von cryptography 2.5
>  
> Ich verwende Python 3.4.4 mit aktuellen Paketen, um unter dem alten Windows XP einen Proxy zu erstellen.
> Bisher funktionierte dies einwandfrei bis einschließlich cryptography 2.4.2.
>  
> Mit cryptography 2.5 bekomme ich bereits beim Ausführen der Python-Scripte einen Fehler zurückgemeldet (siehe auch unten).
>  
>   File "C:\Programme\Python34\lib\site-packages\cryptography\hazmat\bindings\ope
> nssl\binding.py", line 14, in <module>
>     from cryptography.hazmat.bindings._openssl import ffi, lib
> ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
>  
> Ist das ein Fehler in cryptography?
> Oder wurde die Unterstützung für Python 3.4.4 bereits eingestellt?
>  
> Kann ich etwas unternehmen, um weiterhin aktuelle Pakete von cryptography zu verwenden?
> Was muß noch  installiert werden?
>  
> Danke, mit freundlichen Grüßen
>  
> Thomas Schulze
>  
>  
>  
>  
>  
>  
> Console output with cryptography 2.4.2 (Proxy works correct)
>  
> ==============================================================================
>   HTTPSProxy WinXP TLS1.2 support v1.5.2                            2018-11-06
>  
>   cryptography v2.4.2  /  pyOpenSSL v19.0.0  /  urllib3 v1.24.1
>  
>   HTTPSProxy local client port: localhost:8080
>  
>   HTTPSProxy log send port: localhost:9020
> ==============================================================================
>  
> Start logging:
>  
>  
>  
>  
>  
>  
> Install cryptography 2.5 (incl.  idna)
>  
> Collecting cryptography[idna]
>   Using cached https://files.pythonhosted.org/packages/a7/5e/bd3cf6fda1860592d52
> 41ea2b8c6cc4e8c1fb4c576d30a8ab4d43f180121/cryptography-2.5-cp34-cp34m-win32.whl
> Collecting six>=1.4.1 (from cryptography[idna])
>   Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe
> 898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
> Collecting asn1crypto>=0.21.0 (from cryptography[idna])
>   Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a5105
> 76f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
>  
> Collecting cffi!=1.11.3,>=1.8 (from cryptography[idna])
>   Using cached https://files.pythonhosted.org/packages/0e/a6/1275e5c1b1af26a5048
> b0a596aab56236ea4ff4119e0b89cb36180440d72/cffi-1.12.1-cp34-cp34m-win32.whl
> Collecting idna>=2.1; extra == "idna" (from cryptography[idna])
>   Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1
> cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
> Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography[idna])
> Installing collected packages: six, asn1crypto, pycparser, cffi, idna, cryptogra
> phy
>   Found existing installation: six 1.12.0
>     Uninstalling six-1.12.0:
>       Successfully uninstalled six-1.12.0
>   Found existing installation: asn1crypto 0.24.0
>     Uninstalling asn1crypto-0.24.0:
>       Successfully uninstalled asn1crypto-0.24.0
>   Found existing installation: pycparser 2.19
>     Uninstalling pycparser-2.19:
>       Successfully uninstalled pycparser-2.19
>   Found existing installation: cffi 1.12.1
>     Uninstalling cffi-1.12.1:
>       Successfully uninstalled cffi-1.12.1
>   Found existing installation: idna 2.8
>     Uninstalling idna-2.8:
>       Successfully uninstalled idna-2.8
>   Found existing installation: cryptography 2.4.2
>     Uninstalling cryptography-2.4.2:
>       Successfully uninstalled cryptography-2.4.2
> Successfully installed asn1crypto-0.24.0 cffi-1.12.1 cryptography-2.5 idna-2.8 p
> ycparser-2.19 six-1.12.0
>  
>  
>  
>  
>  
>  
> Console output with cryptography 2.5
>  
> Traceback (most recent call last):
>   File "S:\2017-10-31 Projekt HTTPSProxy\3_3_1 HTTPSProxy_py_actual_test_and_bui
> ld\HTTPSProxy.py", line 19, in <module>
>     import OpenSSL
>   File "C:\Programme\Python34\lib\site-packages\OpenSSL\__init__.py", line 8, in
> <module>
>     from OpenSSL import crypto, SSL
>   File "C:\Programme\Python34\lib\site-packages\OpenSSL\crypto.py", line 16, in
> <module>
>     from OpenSSL._util import (
>   File "C:\Programme\Python34\lib\site-packages\OpenSSL\_util.py", line 6, in <m
> odule>
>     from cryptography.hazmat.bindings.openssl.binding import Binding
>   File "C:\Programme\Python34\lib\site-packages\cryptography\hazmat\bindings\ope
> nssl\binding.py", line 14, in <module>
>     from cryptography.hazmat.bindings._openssl import ffi, lib
> ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
>  
>  
>  
>  
>  
>  
> All packages
>  
> altgraph==0.16.1
> appdirs==1.4.3
> asn1crypto==0.24.0
> blessings==1.7
> bpython==0.17.1
> certifi==2018.11.29
> cffi==1.12.1
> chardet==3.0.4
> colorama==0.4.1
> configparser==3.7.1
> cryptography==2.5
> curtsies==0.3.0
> dill==0.2.9
> future==0.17.1
> greenlet==0.4.15
> idna==2.8
> JsonForm==0.0.2
> jsonschema==2.6.0
> JsonSir==0.0.2
> macholib==1.11
> multiprocess==0.70.7
> packaging==19.0
> pefile==2018.8.8
> pip==19.0.3
> print==1.3.0
> pyasn1==0.4.5
> pycparser==2.19
> Pygments==2.3.1
> PyInstaller==3.4
> pyOpenSSL==19.0.0
> pyparsing==2.3.1
> pyreadline==2.1
> PySocks==1.6.8
> Python-EasyConfig==0.1.7
> pywin32==221
> pywin32-ctypes==0.2.0
> PyYAML==3.13
> queuelib==1.5.0
> requests==2.21.0
> Resource==0.2.1
> setuptools==40.8.0
> six==1.12.0
> typing==3.6.6
> urllib3==1.24.1
> wcwidth==0.1.7
> wheel==0.33.1
>  
>  
>  
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev at python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20190223/1d8036cf/attachment-0001.html>


More information about the Cryptography-dev mailing list