CherryPy:启动服务器时“句柄无效”

时间:2014-02-01 20:55:57

标签: cherrypy

我正在尝试启动CherryPy(v3.2.4)实例,但收到以下错误消息:

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\cherrypy\process\servers.py", line 188, in _start_http_thread
    self.httpserver.start()
  File "C:\Python27\lib\site-packages\cherrypy\wsgiserver\wsgiserver2.py", line 1836, in start
    self.bind(af, socktype, proto)
  File "C:\Python27\lib\site-packages\cherrypy\wsgiserver\wsgiserver2.py", line 1883, in bind
    prevent_socket_inheritance(self.socket)
  File "C:\Python27\lib\site-packages\cherrypy\wsgiserver\wsgiserver2.py", line 1599, in prevent_socket_inheritance
    raise WinError()
WindowsError: [Error 6] The handle is invalid.

服务器以前工作过,改变我的Root类的随机部分似乎使问题消失或回来。症状与已解决的问题1016中描述的症状非常相似:

https://bitbucket.org/cherrypy/cherrypy/issue/1016/windowserror-error-6-the-handle-is-invalid

更新 我有一个非常大的数据结构超过4GB。每当我加载数据时就会出现上述问题。虽然我的机器(和Python)可以接受它,但似乎CherryPy不能。这值得向CherryPy开发社区报告吗?

1 个答案:

答案 0 :(得分:0)

您使用的是64位版Windows吗?

How can I fix "[Error 6] The handle is invalid." with PySerial

尝试安装x86版本的python。 希望这有帮助!