[Cryptography-dev] paramiko.SSHClient cryptography

Paul Kehrer paul.l.kehrer at gmail.com
Tue Aug 6 18:22:56 EDT 2019


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 <module>
    import paramiko
  File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in
<module> from paramiko.transport import SecurityOptions, Transport
  File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in
<module> 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 <module>
    import paramiko
  File "C:\Python34\lib\site-packages\paramiko\__init__.py", line 22, in
<module> from paramiko.transport import SecurityOptions, Transport
  File "C:\Python34\lib\site-packages\paramiko\transport.py", line 129, in
<module> 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 <module> from cryptography.hazmat.backends.openssl.backend
import backend
  File
"C:\Python34\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py",
line 71, in <module> from cryptography.hazmat.bindings.openssl import
binding
  File
"C:\Python34\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py",
line 15, in <module> 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: <http://mail.python.org/pipermail/cryptography-dev/attachments/20190806/052dace7/attachment.html>


More information about the Cryptography-dev mailing list