PyCharm Console not working - probably due to conda

Answered

D:\ScriptUni\venv\Scripts\python.exe "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\pydev\pydevconsole.py" --mode=client --port=53758
Traceback (most recent call last):
File "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\pydev\pydevconsole.py", line 5, in <module>
from _pydev_comm.pydev_rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client
File "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\pydev\_pydev_comm\pydev_rpc.py", line 4, in <module>
from _pydev_comm.pydev_server import TSingleThreadedServer
File "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\pydev\_pydev_comm\pydev_server.py", line 4, in <module>
from _shaded_thriftpy.server import TServer
File "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\third_party\thriftpy\_shaded_thriftpy\server.py", line 9, in <module>
from _shaded_thriftpy.transport import (
File "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\third_party\thriftpy\_shaded_thriftpy\transport\__init__.py", line 57, in <module>
from .sslsocket import TSSLSocket, TSSLServerSocket # noqa
File "D:\PyCharm Community Edition 2019.3\plugins\python-ce\helpers\third_party\thriftpy\_shaded_thriftpy\transport\sslsocket.py", line 7, in <module>
import ssl
File "D:\Anaconda\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.

I tried creating a anaconda environment but it seems to be not working (https://stackoverflow.com/questions/54175042/python-3-7-anaconda-environment-import-ssl-dll-load-fail-error)

Would you be able to help me please ?

1 comment
Comment actions Permalink

Hi, how did you create the venv? Either use PyCharm to setup specifically "conda" environment:

or create one in the terminal with "conda create" and add it to PyCharm.

Creating a pure virutalenv out of the conda base will lead to obscure errors like this one.

0

Please sign in to leave a comment.