python - pycharm debugger出现错误 提示 Could not connect to.... 和TypeError:
本文介绍了python - pycharm debugger出现错误 提示 Could not connect to.... 和TypeError:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
pydev debugger: process 20236 is connecting
Could not connect to 127.0.0.1: 10604
Traceback (most recent call last):
File "D:\PyCharm 2017.1.5\helpers\pydev\pydevd.py", line 1588, in <module>
debugger.connect(host, port)
File "D:\PyCharm 2017.1.5\helpers\pydev\pydevd.py", line 325, in connect
self.initialize_network(s)
File "D:\PyCharm 2017.1.5\helpers\pydev\pydevd.py", line 312, in initialize_network
self.writer = WriterThread(sock)
File "D:\PyCharm 2017.1.5\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 412, in __init__
self.cmdQueue = _queue.Queue()
TypeError: __init__() missing 1 required positional argument: 'size'
解决方案
错误信息提示得已经很明显了
pydevd_comm.py第412行
self.cmdQueue = _queue.Queue()
缺少必要参数size
这篇关于python - pycharm debugger出现错误 提示 Could not connect to.... 和TypeError:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文