CherryPy是否壞了?我只是將它設置並試圖用路由調度員,但它有一個導入錯誤,我的代碼如下:CherryPy for Mac中的路由調度程序是否被破解?
import cherrypy
mapper = cherrypy.dispatch.RoutesDispatcher()
的錯誤是:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jwesonga/environments/cherrypy/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 463, in __init__
import routes
ImportError: No module named routes
我是Mac上我使用virtualenv爲後者嘗試了3.2.2和3.0。
對不起,我沒有一個解決方案,但有大於99%的概率,該問題的答案「是X壞了?」或者「這是X中的錯誤嗎?」沒有」。 – JJJ