0
由於某些原因,當我上傳我的應用程序引擎項目昨天(在此之前,一切工作正常),它找不到我的.py文件/模塊之一。我的目錄如下:谷歌應用程序引擎找不到本地python模塊
app_directory/
gaesessions/
__init__.py
lib/
httplib2/
__init__.py
other stuff
app.yaml
appengine_config.py
index.yaml
All other .py files/modules
出於某種原因,我現在得到以下錯誤:
import_string() failed for 'games.GetMyGames'. Possible reasons are:
- missing __init__.py in a package;
- package or module path not included in sys.path;
- duplicated package or module name taking precedence in sys.path;
- missing module, class, function or variable;
Original exception:
ImportError: cannot import name GameModel
是的..循環進口是邪惡的,通常錯誤消息不會告訴你:) – Lipis 2013-03-04 10:39:18