CherryPy AttributeError: 'module' object has no attribute '_Timer' 錯誤

  • 1488
  • 0
  • 2013-06-11

摘要:CherryPy AttributeError: 'module' object has no attribute '_Timer' 錯誤

Python 3.3 import CherryPy時發生

AttributeError: 'module' object has no attribute '_Timer'

 

發生原因:

Python 3.3 把 _Timer 重新命名為 Timer 。

 

解決辦法:

這裡下載 CherryPy 3.2.3 (不知道為什麼官網沒有放到Download頁面)。

 

參考:

[1] AttributeError in cherrypy.process.plugins - threading._Timer renamed to threading.Timer in Python 3.3