PyCharm Error
In my "Python Console" whenever I happen to start up a new python file without even typing anything it prints this to me.
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevconsole.py", line 483, in <module>
pydevconsole.start_client(host, port)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevconsole.py", line 395, in start_client
client, server_transport = make_rpc_client(client_service, host, port)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_comm/pydev_rpc.py", line 11, in make_rpc_client
client_transport, server_transport = open_transports_as_client((host, port))
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_comm/pydev_transport.py", line 231, in open_transports_as_client
client_socket.connect(addr)
ConnectionRefusedError: [Errno 61] Connection refused
Also there's a constant "connecting to console" at the bottom of the window.
And if I hover over/click the error message on the right hand side of PyCharm it does not let me know what my error is.
Please sign in to leave a comment.
Hi, please try the following as the initial troubleshooting:
1. Temporarily disable any firewall/antivirus software you may have.
2. Delete and re-create the project interpreter
If this doesn't help, please reproduce the issue and provide logs afterwards.
[IDE logs](https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)
Hi Andrey,
I had the same problem. I re-installed Pycharm and Python twice. I turned off the firewall and virus scanner etc.
I am able to open the console through the terminal tab and typing python.
Unfortunately, nothing has helped. Here are my logs:
2020-06-17 17:10:02,012 [ 566776] INFO - ns.python.sdk.PythonSdkUpdater - Performing background update of skeletons for SDK Python 3.8 (datainvests) (C:\Users\mariu\PycharmProjects\datainvests\venv\Scripts\python.exe)
2020-06-17 17:10:02,012 [ 566776] INFO - .skeletons.PySkeletonRefresher - Refreshing skeletons for C:\Users\mariu\PycharmProjects\datainvests\venv\Scripts\python.exe
2020-06-17 17:10:02,015 [ 566779] INFO - tPregeneratedSkeletonsProvider - Home path is C:\Program Files\JetBrains\PyCharm 2020.1.2
2020-06-17 17:10:02,019 [ 566783] INFO - tPregeneratedSkeletonsProvider - Pregenerated skeletons root is C:\Program Files\JetBrains\PyCharm 2020.1.2\skeletons
2020-06-17 17:10:02,019 [ 566783] INFO - tPregeneratedSkeletonsProvider - Found pre-generated skeletons at C:\Program Files\JetBrains\PyCharm 2020.1.2\skeletons\skeletons-win-403-python-3.8.1.zip
2020-06-17 17:10:02,087 [ 566851] INFO - letons.PySkeletonGenerator$Run - C:\Users\mariu\PycharmProjects\datainvests\venv\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm 2020.1.2\plugins\python\helpers\generator3\__main__.py" -d C:\Users\mariu\AppData\Local\JetBrains\PyCharm2020.1\python_stubs\556909241\ -s "C:/Users/mariu/AppData/Local/Programs/Python/Python38/DLLs;C:/Users/mariu/AppData/Local/Programs/Python/Python38/Lib;C:/Users/mariu/AppData/Local/Programs/Python/Python38;C:/Users/mariu/PycharmProjects/datainvests/venv/Lib/site-packages;C:/Program Files/JetBrains/PyCharm 2020.1.2/plugins/python/helpers/typeshed/stdlib/3.7;C:/Program Files/JetBrains/PyCharm 2020.1.2/plugins/python/helpers/typeshed/stdlib/3;C:/Program Files/JetBrains/PyCharm 2020.1.2/plugins/python/helpers/typeshed/stdlib/2and3;C:/Program Files/JetBrains/PyCharm 2020.1.2/plugins/python/helpers/typeshed/third_party/3;C:/Program Files/JetBrains/PyCharm 2020.1.2/plugins/python/helpers/typeshed/third_party/2and3"
2020-06-17 17:10:04,974 [ 569738] INFO - letons.PySkeletonGenerator$Run - _abc ('built-in')
2020-06-17 17:10:04,974 [ 569738] INFO - letons.PySkeletonGenerator$Run - _ast ('built-in')
2020-06-17 17:10:04,974 [ 569738] INFO - letons.PySkeletonGenerator$Run - _bisect ('built-in')
2020-06-17 17:10:04,975 [ 569739] INFO - letons.PySkeletonGenerator$Run - _blake2 ('built-in')
2020-06-17 17:10:04,975 [ 569739] INFO - letons.PySkeletonGenerator$Run - _codecs ('built-in')
2020-06-17 17:10:04,975 [ 569739] INFO - letons.PySkeletonGenerator$Run - _codecs_cn ('built-in')
2020-06-17 17:10:04,975 [ 569739] INFO - letons.PySkeletonGenerator$Run - _codecs_hk ('built-in')
2020-06-17 17:10:04,975 [ 569739] INFO - letons.PySkeletonGenerator$Run - _codecs_iso2022 ('built-in')
2020-06-17 17:10:04,975 [ 569739] INFO - letons.PySkeletonGenerator$Run - _codecs_jp ('built-in')
2020-06-17 17:10:04,986 [ 569750] INFO - letons.PySkeletonGenerator$Run - _codecs_kr ('built-in')
2020-06-17 17:10:04,986 [ 569750] INFO - letons.PySkeletonGenerator$Run - _codecs_tw ('built-in')
2020-06-17 17:10:04,986 [ 569750] INFO - letons.PySkeletonGenerator$Run - _collections ('built-in')
2020-06-17 17:10:04,987 [ 569751] INFO - letons.PySkeletonGenerator$Run - _contextvars ('built-in')
2020-06-17 17:10:04,987 [ 569751] INFO - letons.PySkeletonGenerator$Run - _csv ('built-in')
2020-06-17 17:10:04,987 [ 569751] INFO - letons.PySkeletonGenerator$Run - _datetime ('built-in')
2020-06-17 17:10:04,987 [ 569751] INFO - letons.PySkeletonGenerator$Run - _functools ('built-in')
2020-06-17 17:10:04,989 [ 569753] INFO - letons.PySkeletonGenerator$Run - _heapq ('built-in')
2020-06-17 17:10:04,989 [ 569753] INFO - letons.PySkeletonGenerator$Run - _imp ('built-in')
2020-06-17 17:10:04,995 [ 569759] INFO - letons.PySkeletonGenerator$Run - _io ('built-in')
2020-06-17 17:10:04,995 [ 569759] INFO - letons.PySkeletonGenerator$Run - _json ('built-in')
2020-06-17 17:10:04,995 [ 569759] INFO - letons.PySkeletonGenerator$Run - _locale ('built-in')
2020-06-17 17:10:04,998 [ 569762] INFO - letons.PySkeletonGenerator$Run - _lsprof ('built-in')
2020-06-17 17:10:04,998 [ 569762] INFO - letons.PySkeletonGenerator$Run - _md5 ('built-in')
2020-06-17 17:10:05,002 [ 569766] INFO - letons.PySkeletonGenerator$Run - _multibytecodec ('built-in')
2020-06-17 17:10:05,002 [ 569766] INFO - letons.PySkeletonGenerator$Run - _opcode ('built-in')
2020-06-17 17:10:05,002 [ 569766] INFO - letons.PySkeletonGenerator$Run - _operator ('built-in')
2020-06-17 17:10:05,006 [ 569770] INFO - letons.PySkeletonGenerator$Run - _pickle ('built-in')
2020-06-17 17:10:05,006 [ 569770] INFO - letons.PySkeletonGenerator$Run - _random ('built-in')
2020-06-17 17:10:05,006 [ 569770] INFO - letons.PySkeletonGenerator$Run - _sha1 ('built-in')
2020-06-17 17:10:05,010 [ 569774] INFO - letons.PySkeletonGenerator$Run - _sha256 ('built-in')
2020-06-17 17:10:05,010 [ 569774] INFO - letons.PySkeletonGenerator$Run - _sha3 ('built-in')
2020-06-17 17:10:05,013 [ 569777] INFO - letons.PySkeletonGenerator$Run - _sha512 ('built-in')
2020-06-17 17:10:05,013 [ 569777] INFO - letons.PySkeletonGenerator$Run - _signal ('built-in')
2020-06-17 17:10:05,013 [ 569777] INFO - letons.PySkeletonGenerator$Run - _sre ('built-in')
2020-06-17 17:10:05,013 [ 569777] INFO - letons.PySkeletonGenerator$Run - _stat ('built-in')
2020-06-17 17:10:05,018 [ 569782] INFO - letons.PySkeletonGenerator$Run - _statistics ('built-in')
2020-06-17 17:10:05,018 [ 569782] INFO - letons.PySkeletonGenerator$Run - _string ('built-in')
2020-06-17 17:10:05,018 [ 569782] INFO - letons.PySkeletonGenerator$Run - _struct ('built-in')
2020-06-17 17:10:05,021 [ 569785] INFO - letons.PySkeletonGenerator$Run - _symtable ('built-in')
2020-06-17 17:10:05,021 [ 569785] INFO - letons.PySkeletonGenerator$Run - _thread ('built-in')
2020-06-17 17:10:05,025 [ 569789] INFO - letons.PySkeletonGenerator$Run - _tracemalloc ('built-in')
2020-06-17 17:10:05,025 [ 569789] INFO - letons.PySkeletonGenerator$Run - _warnings ('built-in')
2020-06-17 17:10:05,032 [ 569796] INFO - letons.PySkeletonGenerator$Run - _weakref ('built-in')
2020-06-17 17:10:05,033 [ 569797] INFO - letons.PySkeletonGenerator$Run - _winapi ('built-in')
2020-06-17 17:10:05,034 [ 569798] INFO - letons.PySkeletonGenerator$Run - _xxsubinterpreters ('built-in')
2020-06-17 17:10:05,034 [ 569798] INFO - letons.PySkeletonGenerator$Run - array ('built-in')
2020-06-17 17:10:05,034 [ 569798] INFO - letons.PySkeletonGenerator$Run - atexit ('built-in')
2020-06-17 17:10:05,034 [ 569798] INFO - letons.PySkeletonGenerator$Run - audioop ('built-in')
2020-06-17 17:10:05,038 [ 569802] INFO - letons.PySkeletonGenerator$Run - binascii ('built-in')
2020-06-17 17:10:05,038 [ 569802] INFO - letons.PySkeletonGenerator$Run - builtins ('built-in')
2020-06-17 17:10:05,038 [ 569802] INFO - letons.PySkeletonGenerator$Run - cmath ('built-in')
2020-06-17 17:10:05,038 [ 569802] INFO - letons.PySkeletonGenerator$Run - errno ('built-in')
2020-06-17 17:10:05,042 [ 569806] INFO - letons.PySkeletonGenerator$Run - faulthandler ('built-in')
2020-06-17 17:10:05,042 [ 569806] INFO - letons.PySkeletonGenerator$Run - gc ('built-in')
2020-06-17 17:10:05,046 [ 569810] INFO - letons.PySkeletonGenerator$Run - itertools ('built-in')
2020-06-17 17:10:05,052 [ 569816] INFO - letons.PySkeletonGenerator$Run - marshal ('built-in')
2020-06-17 17:10:05,052 [ 569816] INFO - letons.PySkeletonGenerator$Run - math ('built-in')
2020-06-17 17:10:05,052 [ 569816] INFO - letons.PySkeletonGenerator$Run - mmap ('built-in')
2020-06-17 17:10:05,052 [ 569816] INFO - letons.PySkeletonGenerator$Run - msvcrt ('built-in')
2020-06-17 17:10:05,052 [ 569816] INFO - letons.PySkeletonGenerator$Run - nt ('built-in')
2020-06-17 17:10:05,058 [ 569822] INFO - letons.PySkeletonGenerator$Run - parser ('built-in')
2020-06-17 17:10:05,058 [ 569822] INFO - letons.PySkeletonGenerator$Run - sys ('built-in')
2020-06-17 17:10:05,058 [ 569822] INFO - letons.PySkeletonGenerator$Run - time ('built-in')
2020-06-17 17:10:05,061 [ 569825] INFO - letons.PySkeletonGenerator$Run - winreg ('built-in')
2020-06-17 17:10:05,061 [ 569825] INFO - letons.PySkeletonGenerator$Run - xxsubtype ('built-in')
2020-06-17 17:10:05,065 [ 569829] INFO - letons.PySkeletonGenerator$Run - zlib ('built-in')
2020-06-17 17:10:05,065 [ 569829] INFO - letons.PySkeletonGenerator$Run - _asyncio ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_asyncio.pyd')
2020-06-17 17:10:05,077 [ 569841] INFO - letons.PySkeletonGenerator$Run - _bz2 ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_bz2.pyd')
2020-06-17 17:10:05,078 [ 569842] INFO - letons.PySkeletonGenerator$Run - _ctypes ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_ctypes.pyd')
2020-06-17 17:10:05,078 [ 569842] INFO - letons.PySkeletonGenerator$Run - _ctypes_test ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_ctypes_test.pyd')
2020-06-17 17:10:05,078 [ 569842] INFO - letons.PySkeletonGenerator$Run - _decimal ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_decimal.pyd')
2020-06-17 17:10:05,078 [ 569842] INFO - letons.PySkeletonGenerator$Run - _elementtree ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_elementtree.pyd')
2020-06-17 17:10:05,079 [ 569843] INFO - letons.PySkeletonGenerator$Run - _hashlib ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_hashlib.pyd')
2020-06-17 17:10:05,079 [ 569843] INFO - letons.PySkeletonGenerator$Run - _lzma ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_lzma.pyd')
2020-06-17 17:10:05,079 [ 569843] INFO - letons.PySkeletonGenerator$Run - _msi ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_msi.pyd')
2020-06-17 17:10:05,079 [ 569843] INFO - letons.PySkeletonGenerator$Run - _multiprocessing ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_multiprocessing.pyd')
2020-06-17 17:10:05,079 [ 569843] INFO - letons.PySkeletonGenerator$Run - _overlapped ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_overlapped.pyd')
2020-06-17 17:10:05,079 [ 569843] INFO - letons.PySkeletonGenerator$Run - _queue ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_queue.pyd')
2020-06-17 17:10:05,081 [ 569845] INFO - letons.PySkeletonGenerator$Run - _socket ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_socket.pyd')
2020-06-17 17:10:05,089 [ 569853] INFO - letons.PySkeletonGenerator$Run - _sqlite3 ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_sqlite3.pyd')
2020-06-17 17:10:05,089 [ 569853] INFO - letons.PySkeletonGenerator$Run - _ssl ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_ssl.pyd')
2020-06-17 17:10:05,089 [ 569853] INFO - letons.PySkeletonGenerator$Run - _testbuffer ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_testbuffer.pyd')
2020-06-17 17:10:05,120 [ 569884] INFO - letons.PySkeletonGenerator$Run - _testcapi ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_testcapi.pyd')
2020-06-17 17:10:05,120 [ 569884] INFO - letons.PySkeletonGenerator$Run - _testconsole ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_testconsole.pyd')
2020-06-17 17:10:05,120 [ 569884] INFO - letons.PySkeletonGenerator$Run - _testimportmultiple ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_testimportmultiple.pyd')
2020-06-17 17:10:05,121 [ 569885] INFO - letons.PySkeletonGenerator$Run - _testmultiphase ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_testmultiphase.pyd')
2020-06-17 17:10:05,121 [ 569885] INFO - letons.PySkeletonGenerator$Run - _tkinter ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\_tkinter.pyd')
2020-06-17 17:10:05,121 [ 569885] INFO - letons.PySkeletonGenerator$Run - pyexpat ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\pyexpat.pyd')
2020-06-17 17:10:05,121 [ 569885] INFO - letons.PySkeletonGenerator$Run - select ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\select.pyd')
2020-06-17 17:10:05,133 [ 569897] INFO - letons.PySkeletonGenerator$Run - unicodedata ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\unicodedata.pyd')
2020-06-17 17:10:05,134 [ 569898] INFO - letons.PySkeletonGenerator$Run - winsound ('C:\\Users\\mariu\\AppData\\Local\\Programs\\Python\\Python38\\DLLs\\winsound.pyd')
2020-06-17 17:10:05,156 [ 569920] INFO - .skeletons.PySkeletonRefresher - Rebuilding skeletons for binaries took 3122 ms
2020-06-17 17:10:05,198 [ 569962] INFO - ns.python.sdk.PythonSdkUpdater - Performing background scan of packages for SDK Python 3.8 (datainvests) (C:\Users\mariu\PycharmProjects\datainvests\venv\Scripts\python.exe)
2020-06-17 17:10:05,198 [ 569962] INFO - packaging.PyPackageManagerImpl - Running packaging tool: C:\Users\mariu\PycharmProjects\datainvests\venv\Scripts\python.exe C:\Program Files\JetBrains\PyCharm 2020.1.2\plugins\python\helpers\packaging_tool.py list
2020-06-17 17:10:06,836 [ 571600] INFO - gures.PySciEnvironmentProvider - Plots on port: 63342
2020-06-17 17:23:42,316 [1387080] INFO - j.ide.actions.RevealFileAction - Exit code 1
I suggest submitting an issue to https://youtrack.jetbrains.com/issues with your logs, it requires some investingation.