Open zhu952760029 opened 1 year ago
(base) C:\Users\Lenovo>conda list paramiko
#
paramiko 2.8.1 pyhd3eb1b0_0
You have missing dependencies!
Please install them to avoid this message. Note: Spyder could work without some of thesedependencies, however to have a smooth experiencewhen using Spyder we strong/yrecommend you toinstall all the listed missing dependencies. Failing to install these dependencies might result inbugs. Please be sure that any found bugs are not thedirect result of missing dependencies, prior toreporting a new issue.
Hi @zhu952760029 thank you for the feedback! Seems like your openssl
installation is faulty? Could you check what happens when you try to import paramiko
from a Python interpreter using an Anaconda prompt? Let us know!
On Tuesday, when I create a new environment on anaconda, the same issue took place (paramiko error when launching spyder).
In such environment, importing paramiko showed the following errors. Therefore, I think that there were some problems on the installation of paramiko or cryptography. (There are no problems in "base" environment.)
(newenv) C:\Users\neura>python
Python 3.8.16 (default, Mar 2 2023, 03:18:16) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\paramiko\__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\paramiko\transport.py", line 129, in <module>
class Transport(threading.Thread, ClosingContextManager):
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\paramiko\transport.py", line 190, in Transport
if KexCurve25519.is_available():
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\paramiko\kex_curve25519.py", line 30, in is_available
X25519PrivateKey.generate()
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\cryptography\hazmat\primitives\asymmetric\x25519.py", line 39, in generate
from cryptography.hazmat.backends.openssl.backend import backend
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 6, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 61, in <module>
from cryptography.hazmat.bindings.openssl import binding
File "C:\Users\neura\anaconda3\envs\newenv\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 14, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed while importing _openssl: ...
However,when I recreate a new environment on anaconda today, importing paramiko does not show the above errors. I think that the problems on the installation of paramiko or cryptography were fixed.
To fix the problematic environment, the following commands might work, although I have not tried them.
conda install cryptography --force-reinstall
or
conda install paramiko --force-reinstall
PS:
I tried the above command, but they did not fix the problematic environment.
Instead, the follwing procedures worked.
First, please downgrade the cryptography by
conda install cryptography=38.0.4
and then upgrade it by
conda install cryptography=39.0.1
Thank you for sharing your findings here @neuralassembly !
I will close this as not related with Spyder then but let us know if you find something else!
Let's leave this one open for a while so that other users can find it when searching for a problem similar to this one.
Description
What steps will reproduce the problem?
internal errors and to inspect Spyder internals with the following commands: spy.app, spy.window, dir(spy)
Please do not use it to run your code
Traceback
Versions
Dependencies