Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramiko.transport:ImportError: DLL load failed: The specified module could not be found #510

Open
linhz0hz opened this issue Apr 22, 2024 · 1 comment

Comments

@linhz0hz
Copy link

linhz0hz commented Apr 22, 2024

Hello,
When using the old windows version of pyrpl, I got this error message:
`ERROR:paramiko.transport:Unknown exception: DLL load failed: The specified module could not be found.
ERROR:paramiko.transport:Traceback (most recent call last):
ERROR:paramiko.transport: File "site-packages\paramiko\transport.py", line 1890, in run
ERROR:paramiko.transport: File "site-packages\paramiko\transport.py", line 1988, in negotiate_keys
ERROR:paramiko.transport: File "site-packages\paramiko\kex_ecdh_nist.py", line 32, in start_kex
ERROR:paramiko.transport: File "site-packages\paramiko\kex_ecdh_nist.py", line 51, in generate_key_pair
ERROR:paramiko.transport: File "site-packages\cryptography\hazmat\backends_init
.py", line 15, in default_backend
ERROR:paramiko.transport: File "c:\projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
ERROR:paramiko.transport: File "site-packages\cryptography\hazmat\backends\openssl_init
.py", line 7, in
ERROR:paramiko.transport: File "c:\projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
ERROR:paramiko.transport: File "site-packages\cryptography\hazmat\backends\openssl\backend.py", line 53, in
ERROR:paramiko.transport: File "c:\projects\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
ERROR:paramiko.transport: File "site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 13, in
ERROR:paramiko.transport:ImportError: DLL load failed: The specified module could not be found.
ERROR:paramiko.transport:
Traceback (most recent call last):
File "pyrpl\redpitaya.py", line 237, in start_ssh
File "pyrpl\sshshell.py", line 53, in init
File "site-packages\paramiko\client.py", line 331, in connect
File "site-packages\paramiko\util.py", line 276, in retry_on_signal
File "site-packages\paramiko\client.py", line 331, in
socket.timeout: timed out

During handling of the above exception, another exception occurred:`

I believe this is related to this pyca/cryptography#10388 , ultimately an old python version? I guess I have no control of the version as I am running a pre-packaged binary? I see that the pre-compiled windows binary is from 2017 on source-forge, maybe this should no longer be recommended program to use?

@Dylan-Danese
Copy link

Dylan-Danese commented May 3, 2024

Hey! We had the same error when launching the .exe, but managed to bypass it by launching it from the cmd instead. I also cloned the python repo, updated the depreciated pyqtgraph class "GraphicsWindow" to "GraphicsLayoutWidget" in all of the widget files (https://pyqtgraph.readthedocs.io/en/pyqtgraph-0.11.1/graphicswindow.html) and managed to make it run for python 3.9, although not sure of the stability of this yet though, but the oscilloscope and sweep works. I'm by no means good at python but figured it might help people here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants