我正在尝试设置一个有效的 IDE,并开始在 Eclipse/Pydev 等友好的环境中使用 Pyramid 框架学习 Python。
如果我通过替换使用旧的粘贴脚本服务器,一切正常(调试,包括断点):
use = egg:waitress#main --> use = egg:Paste#http
在开发.ini 中。
问题是新的“方法”是使用 Python 3+ 版本支持的女服务员,而 pastescript 仅适用于 2.x。
我想知道使用 Waitress 和 Pydev 调试是否存在任何已知问题,以及是否有任何解决方法。
这些是我尝试在 Eclipse 中使用 Waitress 进行调试时出现的错误:
pydev debugger: starting
Starting server in PID 7508.
Unhandled exception in thread started by serving on http://0.0.0.0:6543
Traceback (most recent call last):
File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
TypeErrorUnhandled exception in thread started by
Traceback (most recent call last):
File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
: Unhandled exception in thread started by
Traceback (most recent call last):
File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
TypeError self.original_func(*self.args, **self.kwargs)
TypeError: ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
: Unhandled exception in thread started by
Traceback (most recent call last):
File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
self.original_func(*self.args, **self.kwargs)
TypeError: ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple