I can't debug after updating PyCharm 2021.2

Dear:

I run debugger now,  error outputing  as following :

D:\P_Projects\venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 54748 --file D:/P_Projects/Exc/purify.py
Traceback (most recent call last):
File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2173, in <module>
main()
File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2055, in main
dispatcher.connect(host, port)
File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1827, in connect
self.reader = DispatchReader(self)
File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1840, in __init__
ReaderThread.__init__(self, self.dispatcher.client)
File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 268, in __init__
from _pydevd_bundle.pydevd_process_net_command import process_net_command
File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_process_net_command.py", line 10, in <module>
from _pydevd_bundle.pydevd_comm import (CMD_RUN, CMD_VERSION, CMD_LIST_THREADS, CMD_THREAD_KILL,
ImportError: cannot import name 'CMD_TABLE_EXEC' from '_pydevd_bundle.pydevd_comm' (D:\Program Files\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py)

Process finished with exit code 1

All  happening after I updated my version to latest version 2021.2.

PyCharm version is as following:

PyCharm 2021.2 (Community Edition)
Build #PC-212.4746.96, built on July 27, 2021
Runtime version: 11.0.11+9-b1504.13 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1965M
Cores: 8
Registry: debugger.watches.in.variables=false, documentation.show.toolbar=true
Non-Bundled Plugins: String Manipulation (8.15.203.000.3), net.seesharpsoft.intellij.plugins.csv (2.17.1)

Anyone could help me?

thanks 

6 comments
Comment actions Permalink

Hi, is it possible to provide code sample to reproduce the issue?

0
Comment actions Permalink

Dear Resler
Very simple code, such as following。 If I run directly, It is ok。

from itertools import count

my_vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']

current_counter = count()

string = "This is just a sentence."

for i in string:
if i in my_vowels:
print(f"Current vowel: {i}")
print(f"Number of vowels found so far: {next(current_counter)}")

BTW:
It is to show for Even Log:17:05 Connection to Python debugger failed: Socket operation on nonsocket: configureBlocking

0
Comment actions Permalink

Thank you,

Could you please provide screenshot of the error, and Logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue ?

You can use uploading service at https://uploads.jetbrains.com/ , and provide upload ID in your reply.

0
Comment actions Permalink
Dear
I have uploaded successfully, ID is as following:
 
thanks

Your upload is successful!

Upload ID: 2021_08_05_F9TPHyTpuQ4FACjC (file: pyissue.png) 

Share the id with JetBrains support.

Start another upload

thanks
0
Comment actions Permalink

Thank you,

Could you please test the following:

1. Does it help to remove and re-add the project interpreter? 

2. Does it help to remove Japanese characters from the file name? 

3. Does the issue reproduce if you create a new project with `print('hello world')` and run the debugger on that?

0
Comment actions Permalink

Hi, I got the same issue with :


IntelliJ IDEA 2021.2.2 (Ultimate Edition)
Build #IU-212.5284.40, built on September 14, 2021
Licensed to Keleo Solutions / Pascal Isman
Subscription is active until May 3, 2022.
Runtime version: 11.0.12+7-b1504.28 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2014M
Cores: 12
Non-Bundled Plugins: com.jetbrains.plugins.ini4idea (212.4746.57), dev.pnbarx.idea.treecolor (1.2.2), Pythonid (212.5284.44), ru.adelf.idea.dotenv (2021.3.0.212), net.ashald.envfile (3.2.2)
Kotlin: 212-1.5.10-release-IJ5284.40

 

3. Does the issue reproduce if you create a new project with `print('hello world')` and run the debugger on that?

I got this error :

C:\Users\micro\anaconda3\envs\python2\python.exe C:\Users\micro\AppData\Roaming\JetBrains\IntelliJIdea2021.2\plugins\python\helpers\pydev\pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 50641 --file C:/Users/micro/Dev/untitled/test.py
Traceback (most recent call last):
File "C:\Users\micro\AppData\Roaming\JetBrains\IntelliJIdea2021.2\plugins\python\helpers\pydev\pydevd.py", line 45, in <module>
from _pydevd_bundle.pydevd_comm import CMD_SET_BREAK, CMD_SET_NEXT_STATEMENT, CMD_STEP_INTO, CMD_STEP_OVER, \
File "C:\Users\micro\AppData\Roaming\JetBrains\IntelliJIdea2021.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 108, in <module>
from _pydevd_bundle.pydevd_tables import exec_table_command
ImportError: No module named pydevd_tables

Process finished with exit code 1
0

Please sign in to leave a comment.