0
隨着風暴文檔中所述模塊,我做以下導入所需的符號使用風暴:使用風暴:導入錯誤:沒有命名的本地
from storm.locals import *
我用它旁邊有塔,和風暴的確是作爲一個雞蛋安裝在Pylon爲我設置的虛擬Python環境中,並且它還搜索正確的路徑。
然而,當上面的導入代碼進行評估,以下異常被拋出:
ImportError: No module named local
但我沒有明確包括一個名爲「本地」模塊什麼,但「當地人」。
更新(回溯)
URL: http://localhost:5000/characters/index
File '/home/andy/pylon-env/lib/python2.6/site-packages/WebError-0.10.1-py2.6.egg/weberror/evalexception.py', line 431 in respond
app_iter = self.application(environ, detect_start_response)
File '/home/andy/pylon-env/lib/python2.6/site-packages/Beaker-1.3.1-py2.6.egg/beaker/middleware.py', line 70 in __call__
return self.app(environ, start_response)
File '/home/andy/pylon-env/lib/python2.6/site-packages/Beaker-1.3.1-py2.6.egg/beaker/middleware.py', line 149 in __call__
return self.wrap_app(environ, session_start_response)
File '/home/andy/pylon-env/lib/python2.6/site-packages/Routes-1.10.3-py2.6.egg/routes/middleware.py', line 130 in __call__
response = self.app(environ, start_response)
File '/home/andy/pylon-env/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 124 in __call__
controller = self.resolve(environ, start_response)
File '/home/andy/pylon-env/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 263 in resolve
return self.find_controller(controller)
File '/home/andy/pylon-env/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 284 in find_controller
__import__(full_module_name)
File '/home/andy/projects/evecharacters/evecharacters/controllers/characters.py', line 9 in <module>
from storm.local import *
ImportError: No module named local
你能提供回溯嗎? – 2009-07-29 11:10:42
當然,並完成:-) – Anders 2009-07-29 11:15:18