无法使用Waitress在Eclipse / Pydev中调试Pyramid项目

时间:2012-06-17 18:40:29

标签: python eclipse pydev pyramid waitress

我正在尝试设置一个有效的IDE,并开始在友好的环境(如Eclipse / Pydev)中使用Pyramid框架学习Python。

如果我通过替换使用旧的pastescript服务器,一切正常(调试,包括断点):

use = egg:waitress#main --> use = egg:Paste#http 

在development.ini中。

问题是新的“方法”是使用Python 3+版本支持的女服务员,而pastescript仅适用于2.x.

我想知道是否有任何类型的已知问题调试Waitress和Pydev以及是否有任何解决方法。

当我尝试使用Waitress在Eclipse中进行调试时,这些是错误:

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

1 个答案:

答案 0 :(得分:1)

我认为这已经修复了 - 请尝试最新的每晚构建以确定它是否适合您。

有关获取此内容的详细信息,请参阅:http://pydev.org/download.html