在Windows 8上使用Cherrypy的问题(​​Python)

时间:2015-01-30 03:40:58

标签: python cherrypy

我已经成功安装了cherrypy,但是当我尝试导入它时,出现以下错误。我是一个新手,花了很多时间试图让这个工作,所以任何帮助都将受到高度赞赏。

Traceback (most recent call last):
  File "unitconverter.py", line 1, in <module>
    import cherrypy
  File "c:\Python34\lib\site-packages\cherrypy-3.2.0-py3.4.egg\cherrypy\__init__
.py", line 82, in <module>
    from cherrypy import process
  File "c:\Python34\lib\site-packages\cherrypy-3.2.0-py3.4.egg\cherrypy\process\
__init__.py", line 14, in <module>
    from cherrypy.process import plugins, servers
  File "c:\Python34\lib\site-packages\cherrypy-3.2.0-py3.4.egg\cherrypy\process\
plugins.py", line 424, in <module>
    class PerpetualTimer(threading._Timer):
AttributeError: 'module' object has no attribute '_Timer'

1 个答案:

答案 0 :(得分:0)

来自what I can see,这是CherryPy版本的一个错误。您最好升级到更新版本。