From mariosgsg at gmail.com Tue Aug 6 06:55:50 2019 From: mariosgsg at gmail.com (=?UTF-8?Q?Mario_Saornil_Garc=C3=ADa?=) Date: Tue, 6 Aug 2019 12:55:50 +0200 Subject: [Cryptography-dev] paramiko.SSHClient cryptography In-Reply-To: References: Message-ID: Good morning, Sorry the inconveniences. I write because obtained the next exception and I don?t know found solution. The same code works perfectly with python 3.7 and cryptography 2.4.4 but I don?t use python > 3.5 because I need execute my code in a Windows XP. I make different test: 1. python 3.4.4 + crytpgraphy=2.4.2 2. python 3.4.4 + crytpgraphy=2.5 3. python 2.7.9, but I tried install cryptography==2.9 obtained more errors. Please can you help me? Regards, 1. **************************************************************** Unknown exception: Raw Traceback (most recent call last): File "C:\Python34\lib\site-packages\paramiko\transport.py", line 2083, in run self._handler_table[ptype](self, m) File "C:\Python34\lib\site-packages\paramiko\transport.py", line 2199, in _negotiate_keys self.kex_engine.start_kex() File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line 54, in start_kex serialization.Encoding.Raw, serialization.PublicFormat.Raw File "C:\Python34\lib\enum.py", line 255, in __getattr__ raise AttributeError(name) from None AttributeError: Raw Exception: Raw **************************************************************** 2. **************************************************************** Traceback (most recent call last): File "ssh_client_pk2.py", line 3, in import paramiko File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in from paramiko.transport import SecurityOptions, Transport File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in class Transport(threading.Thread, ClosingContextManager): File "C:\Python34\lib\site-packages\paramiko\transport.py", line 190, in Transport if KexCurve25519.is_available(): File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line 30, in i s_available X25519PrivateKey.generate() File "C:\Python34\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", line 38, in generate **************************************************************** 3. **************************************************************** Traceback (most recent call last): File "xx.py", line 3, in import paramiko File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in from paramiko.transport import SecurityOptions, Transport File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in class Transport(threading.Thread, ClosingContextManager): File "C:\Python34\lib\site-packages\paramiko\transport.py", line 190, in Transport if KexCurve25519.is_available(): File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line 30, in is_available X25519PrivateKey.generate() File "C:\Python34\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", line 38, in generate from cryptography.hazmat.backends.openssl.backend import backend File "C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 7, in from cryptography.hazmat.backends.openssl.backend import backend File "C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 71, in from cryptography.hazmat.bindings.openssl import binding File "C:\Python34\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 15, in from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: DLL load failed: No se puede encontrar el m?dulo especificado. **************************************************************** Best Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.l.kehrer at gmail.com Tue Aug 6 18:22:56 2019 From: paul.l.kehrer at gmail.com (Paul Kehrer) Date: Tue, 6 Aug 2019 15:22:56 -0700 Subject: [Cryptography-dev] paramiko.SSHClient cryptography In-Reply-To: References: Message-ID: Hi Mario, Before we do anything else please try the following: * Create a new virtualenv * Install the latest paramiko and cryptography into the virtualenv * Run your code in that virtualenv and see if you get the error If you do, please try to reduce the code until you have the minimum number of lines that can reproduce the problem and then provide that code to us. We can then replicate your issue and try to help you fix it. -Paul On August 6, 2019 at 9:00:43 PM, Mario Saornil Garc?a (mariosgsg at gmail.com) wrote: Good morning, Sorry the inconveniences. I write because obtained the next exception and I don?t know found solution. The same code works perfectly with python 3.7 and cryptography 2.4.4 but I don?t use python > 3.5 because I need execute my code in a Windows XP. I make different test: 1. python 3.4.4 + crytpgraphy=2.4.2 2. python 3.4.4 + crytpgraphy=2.5 3. python 2.7.9, but I tried install cryptography==2.9 obtained more errors. Please can you help me? Regards, 1. **************************************************************** Unknown exception: Raw Traceback (most recent call last): File "C:\Python34\lib\site-packages\paramiko\transport.py", line 2083, in run self._handler_table[ptype](self, m) File "C:\Python34\lib\site-packages\paramiko\transport.py", line 2199, in _negotiate_keys self.kex_engine.start_kex() File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line 54, in start_kex serialization.Encoding.Raw, serialization.PublicFormat.Raw File "C:\Python34\lib\enum.py", line 255, in __getattr__ raise AttributeError(name) from None AttributeError: Raw Exception: Raw **************************************************************** 2. **************************************************************** Traceback (most recent call last): File "ssh_client_pk2.py", line 3, in import paramiko File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in from paramiko.transport import SecurityOptions, Transport File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in class Transport(threading.Thread, ClosingContextManager): File "C:\Python34\lib\site-packages\paramiko\transport.py", line 190, in Transport if KexCurve25519.is_available(): File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line 30, in i s_available X25519PrivateKey.generate() File "C:\Python34\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", line 38, in generate **************************************************************** 3. **************************************************************** Traceback (most recent call last): File "xx.py", line 3, in import paramiko File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in from paramiko.transport import SecurityOptions, Transport File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in class Transport(threading.Thread, ClosingContextManager): File "C:\Python34\lib\site-packages\paramiko\transport.py", line 190, in Transport if KexCurve25519.is_available(): File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line 30, in is_available X25519PrivateKey.generate() File "C:\Python34\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", line 38, in generate from cryptography.hazmat.backends.openssl.backend import backend File "C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 7, in from cryptography.hazmat.backends.openssl.backend import backend File "C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 71, in from cryptography.hazmat.bindings.openssl import binding File "C:\Python34\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 15, in from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: DLL load failed: No se puede encontrar el m?dulo especificado. **************************************************************** Best Regards, _______________________________________________ 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: From mariosgsg at gmail.com Thu Aug 8 03:30:33 2019 From: mariosgsg at gmail.com (=?UTF-8?Q?Mario_Saornil_Garc=C3=ADa?=) Date: Thu, 8 Aug 2019 09:30:33 +0200 Subject: [Cryptography-dev] paramiko.SSHClient cryptography In-Reply-To: References: Message-ID: Good morning, Please, can they review this email?, can you help me? Regards, El mar., 6 ago. 2019 a las 12:55, Mario Saornil Garc?a () escribi?: > Good morning, > > Sorry the inconveniences. > > I write because obtained the next exception and I don?t know found > solution. > > The same code works perfectly with python 3.7 and cryptography 2.4.4 but I > don?t use python > 3.5 because I need execute my code in a Windows XP. > > I make different test: > > 1. python 3.4.4 + crytpgraphy=2.4.2 > 2. python 3.4.4 + crytpgraphy=2.5 > 3. python 2.7.9, but I tried install cryptography==2.9 obtained more > errors. > > Please can you help me? > > Regards, > > 1. > **************************************************************** > Unknown exception: Raw > Traceback (most recent call last): > File "C:\Python34\lib\site-packages\paramiko\transport.py", line 2083, > in run self._handler_table[ptype](self, m) > File "C:\Python34\lib\site-packages\paramiko\transport.py", line 2199, > in _negotiate_keys self.kex_engine.start_kex() > File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line > 54, in start_kex serialization.Encoding.Raw, serialization.PublicFormat.Raw > File "C:\Python34\lib\enum.py", line 255, in __getattr__ > raise AttributeError(name) from None > AttributeError: Raw > > Exception: Raw > **************************************************************** > > 2. > **************************************************************** > Traceback (most recent call last): > File "ssh_client_pk2.py", line 3, in > import paramiko > File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in > from paramiko.transport import SecurityOptions, Transport > File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in > class Transport(threading.Thread, ClosingContextManager): > File "C:\Python34\lib\site-packages\paramiko\transport.py", line 190, in > Transport > if KexCurve25519.is_available(): > File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line > 30, in i > s_available > X25519PrivateKey.generate() > File > "C:\Python34\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", > line 38, in generate > **************************************************************** > > 3. > **************************************************************** > Traceback (most recent call last): > File "xx.py", line 3, in > import paramiko > File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in > from paramiko.transport import SecurityOptions, Transport > File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in > class Transport(threading.Thread, ClosingContextManager): > File "C:\Python34\lib\site-packages\paramiko\transport.py", line 190, in > Transport if KexCurve25519.is_available(): > File "C:\Python34\lib\site-packages\paramiko\kex_curve25519.py", line > 30, in is_available X25519PrivateKey.generate() > File > "C:\Python34\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", > line 38, in generate from cryptography.hazmat.backends.openssl.backend > import backend > File > "C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", > line 7, in from cryptography.hazmat.backends.openssl.backend > import backend > File > "C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", > line 71, in from cryptography.hazmat.bindings.openssl import > binding > File > "C:\Python34\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", > line 15, in from cryptography.hazmat.bindings._openssl import ffi, > lib > ImportError: DLL load failed: No se puede encontrar el m?dulo especificado. > **************************************************************** > > Best Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: