Reputation: 823
I recently upgraded to the latest version of PyCharm (2019.01) and my Anaconda 3 install no longer starts up in the Python Console. I get the following error:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\pydevconsole.py", line 5, in <module>
from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\_pydev_comm\rpc.py", line 4, in <module>
from _pydev_comm.server import TSingleThreadedServer
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\_pydev_comm\server.py", line 4, in <module>
from _shaded_thriftpy.server import TServer
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\third_party\thriftpy\_shaded_thriftpy\server.py", line 9, in <module>
from _shaded_thriftpy.transport import (
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\third_party\thriftpy\_shaded_thriftpy\transport\__init__.py", line 57, in <module>
from .sslsocket import TSSLSocket, TSSLServerSocket # noqa
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\third_party\thriftpy\_shaded_thriftpy\transport\sslsocket.py", line 7, in <module>
import ssl
File "C:\Users\bnielson\AppData\Local\Continuum\anaconda3\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 have Googled this and there are a number of sites that talk about similar errors but none of their fixes have worked for me so far.
Strangely, I can go to the Terminal tab and start up Anaconda 3's Python Manually and this works just fine.
I have tried uninstalling and reinstalling Anaconda 3 and PyCharm. I have tried not importing previous settings so that I'm getting a fresh start. None of this has worked.
Anaconda 2.7 works just fine.
I tried this link already:
I'm not even clear why I'd be getting this error in the first place, so it's hard to troubleshoot.
Note: I am intentionally trying to start up Anaconda 3 as originally installed and not a Conda or Virtual Environment (as this loses all the installed items that come as default.)
I am on Windows.
Upvotes: 1
Views: 970
Reputation: 40106
Per our discussions in comments:
There's a new kid on the block. Suggest that you consider VSCode. Although it is from Microsoft, it is free and built on open source. It also has integrated Git, debugging and extensions. Also has an active and responsive issues forum on github for reporting bugs and requesting features.
Steps to happiness: (a) uninstall PyCharm (b) completely uninstall Anaconda (c) install VSCode (d) install Python extension (e) watch a few YouTube videos to see how it works (f) never look back.
Suggest you also review this SO question/answer for important tweaking tip
Note that it is imperative to fully uninstall Anaconda, and install Python comme il faut, as Anaconda will likely continue to cause you grief if you don't.
Extensions are installed within the app, just using the square boxy icon on the left-side toolbar. I suggest you consider:
Important keystrokes to know off-the-start:
F9 - add/remove breakpoint (right-click on breakpoint to add conditions)
F5 - run in debugger mode
Ctrl Alt n - run full speed (via CodeRunner extension)
Upvotes: 1
Reputation: 8590
Try PyCharm 2019.1.3 RC build. The problem should be fixed there I believe (PY-35141).
Upvotes: 1