Connection to Python debugger failed
I'm trying to debug a piece of code for the first time after installing PyCharm in my PC. But i see the below error while doing the same. How to fix this issue?
C:\Users\abc\AppData\Local\Programs\Python\Python310\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 55949 --file D:/CodingPractice/PythonPractice/DSA/Queue.py
C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\pydevd.py:1844: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
dummy_thread = threading.currentThread()
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_process_net_command.py", line 891, in process_net_command
py_db.writer.add_command(cmd)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 355, in add_command
self.cmdQueue.put(cmd)
AttributeError: 'Queue' object has no attribute 'put'
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_process_net_command.py", line 891, in process_net_command
py_db.writer.add_command(cmd)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 355, in add_command
self.cmdQueue.put(cmd)
AttributeError: 'Queue' object has no attribute 'put'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 318, in _on_run
self.process_command(cmd_id, int(args[1]), args[2])
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 333, in process_command
self.process_net_command(self.global_debugger_holder.global_dbg, cmd_id, seq, text)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_process_net_command.py", line 909, in process_net_command
py_db.writer.add_command(cmd)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 355, in add_command
self.cmdQueue.put(cmd)
AttributeError: 'Queue' object has no attribute 'put'
Can't process net command: 501 1 0.1 WIN
Please sign in to leave a comment.
Hello,
Do you have a python file in your project with named ``Queue``? Could you please try to rename it?
Antonina Belianskaya That worked, thanks