Pycharm 2020.3 Debugger is not working
I have just upgraded to the PyCharm 2020.3 Community edition, and my debugger no longer works. I initially encountered this when I did an upgrade from 2020.2, but I have since installed a fresh copy, and cleared all my setting, and started with a fresh project, using it's own venv interpreter (Python 3.9.0).
I am running on Fedora 33.
This is the error message I get:
.../pycharm_test/venv/bin/python /usr/local/pycharm/plugins/python-ce/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 43647 --file.../pycharm_test/main.py
Traceback (most recent call last):
File "/usr/local/pycharm/plugins/python-ce/helpers/pydev/pydevd.py", line 51, in <module>
from _pydevd_frame_eval.pydevd_frame_eval_main import (
File "/usr/local/pycharm-community-2020.3/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/pydevd_frame_eval_main.py", line 50, in <module>
from _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper import frame_eval_func, stop_frame_eval, dummy_trace_dispatch, clear_thread_local_info
File "/usr/local/pycharm-community-2020.3/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py", line 56, in <module>
clear_thread_local_info = mod.clear_thread_local_info_py
AttributeError: module '_pydevd_frame_eval_ext.pydevd_frame_evaluator_py39' has no attribute 'clear_thread_local_info_py'
Process finished with exit code 1
Please sign in to leave a comment.
Can confirm, same here. Pycharm 2020.3 - 203.5981.165
(...) venv/bin/python /home/dvitali/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/203.5981.165/plugins/python/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 36899 --file /home/dvitali/.venvs/project/bin/flask test-remediation-reminders
Traceback (most recent call last):
File "/home/dvitali/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/203.5981.165/plugins/python/helpers/pydev/pydevd.py", line 51, in <module>
from _pydevd_frame_eval.pydevd_frame_eval_main import (
File "/home/dvitali/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/203.5981.165/plugins/python/helpers/pydev/_pydevd_frame_eval/pydevd_frame_eval_main.py", line 50, in <module>
from _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper import frame_eval_func, stop_frame_eval, dummy_trace_dispatch, clear_thread_local_info
File "/home/dvitali/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/203.5981.165/plugins/python/helpers/pydev/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py", line 56, in <module>
clear_thread_local_info = mod.clear_thread_local_info_py
AttributeError: module '_pydevd_frame_eval_ext.pydevd_frame_evaluator_py39' has no attribute 'clear_thread_local_info_py'
Same here for Fedora 25 and Pycharm Professional 2020.3 - 203.5981.165
I have the same problem when debugging Python code in CLion 2020.3. I was able to workaround the problem by adding the environment setting PYDEVD_USE_CYTHON=NO to my run/debug configuration. This disables the Cython extension which seem to cause the error. As a side effect this also disables the frame evaluator which depends on Cython.
Fedora 33
Python 3.9.0
PyCharm 2020.3 (Professional Edition)
Build #PY-203.5981.165, built on December 3, 2020
Runtime version: 11.0.9+11-b1145.21 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.9.11-200.fc33.x86_64
GC: ParNew, ConcurrentMarkSweep
Memory: 1896M
Cores: 8
Current Desktop: GNOME
EDIT: The information provided above is because I have the same problem.
I have created a YouTrack issue:
https://youtrack.jetbrains.com/issue/PY-45833
Please see https://youtrack.jetbrains.com/issue/PY-45771
For the workaround remove Cython speedups with
After removing cpython, I am able to debug using PyCharm2020.3
Same issue here. It's a problem with Cython, which I would have preferred disabling via the PYDEVD_USE_CYTHON variable, but that doesn't work. Only removing the cache from ~/.cache/JetBrains/PyCharm2020.3/cythonExtensions works.