启动测试CherryPy脚本时出错

时间:2015-02-27 20:25:00

标签: python web-applications cherrypy

我刚刚了解了CherryPy,并希望将其整合到我的一些Web应用程序中。下载并安装CherryPy后,我按照文档中的说明运行了教程测试:

python -m cherrypy.tutorial.tut01_helloworld

它产生了以下输出:

[27/Feb/2015:12:11:08] ENGINE Listening for SIGTERM.
[27/Feb/2015:12:11:08] ENGINE Bus STARTING
[27/Feb/2015:12:11:08] ENGINE Set handler for console events.
[27/Feb/2015:12:11:08] ENGINE Started monitor thread '_TimeoutMonitor'.
[27/Feb/2015:12:11:08] ENGINE Started monitor thread 'Autoreloader'.
[27/Feb/2015:12:11:08] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x0000000002F63518>>
Traceback (most recent call last):
File "c:\python27\lib\site-packages\cherrypy\process\wspbus.py", line 205, in publish
output.append(listener(*args, **kwargs))
File "c:\python27\lib\site-packages\cherrypy\_cpserver.py", line 167, in start
self.httpserver, self.bind_addr = self.httpserver_from_self()
File "c:\python27\lib\site-packages\cherrypy\_cpserver.py", line 158, in httpserver_from_self
httpserver = _cpwsgi_server.CPWSGIServer(self)
File "c:\python27\lib\site-packages\cherrypy\_cpwsgi_server.py", line 43, in __init__
accepted_queue_timeout=self.server_adapter.accepted_queue_timeout,
TypeError: __init__() got an unexpected keyword argument 'accepted_queue_size'

[27/Feb/2015:12:11:08] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "c:\python27\lib\site-packages\cherrypy\process\wspbus.py", line 243, in start
self.publish('start')
File "c:\python27\lib\site-packages\cherrypy\process\wspbus.py", line 223,   in publish
raise exc
ChannelFailures: TypeError("__init__() got an unexpected keyword argument 'accepted_queue_size'",)

因为它是来自CherryPy的测试我怀疑我缺少一些依赖性但是在查看了网站的安装文档之后,它并没有说它对基本的简单脚本有任何依赖性。我检查了stackoverflow但是找不到匹配的东西。 谁看过这个吗?我在Windows 7,python 2.7和CherryPy 3.6上运行。

谢谢!

0 个答案:

没有答案