我不知道發生了什麼變化,但突然沒有任何Python App Engine項目會在我的PC上啓動。他們從我的MacBook上開始就好了,所以我的電腦上安裝的東西很混亂。我試過回到1.8.8,但這不起作用。我也嘗試過使用新的Python安裝,但那不起作用。我甚至嘗試過使用端口8080(我通常使用端口80,因爲我以管理員身份運行應用啓動器)。App Engine Python無法啓動
這是在錯誤日誌中顯示的,當我點擊我的一個項目開始:
2014-02-05 10:42:24 Running command: "['c:\\users\\jonathan\\appdata\\local\\enthought\\canopy\\user\\scripts\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=80', '--admin_port=8000', 'C:\\Users\\jonathan\\My Repositories\\my-project']"
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 197, in <module>
_run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 193, in _run_file
execfile(script_path, globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 32, in <module>
from google.appengine.tools.devappserver2.admin import admin_server
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\admin\admin_server.py", line 29, in <module>
from google.appengine.tools.devappserver2.admin import console
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\admin\console.py", line 22, in <module>
from google.appengine.tools.devappserver2 import module
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\module.py", line 69, in <module>
from google.appengine.tools.devappserver2 import wsgi_server
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\wsgi_server.py", line 31, in <module>
from cherrypy import wsgiserver
File "C:\Program Files (x86)\Google\google_appengine\lib\cherrypy\cherrypy\__init__.py", line 278, in <module>
_pydoc._builtin_resolve = _pydoc.resolve
AttributeError: 'module' object has no attribute 'resolve'
2014-02-05 10:42:32 (Process exited with code 1)
另外,我使用的是Windows 7 64位系統。我原來的Python安裝來自Enthought x64,但我也嘗試使用基本的x64 Python。如前所述,我從1.8.9下調至1.8.8,無濟於事。
它應該是pythonw? –
據我所知它總是使用pythonw。我試過指定python.exe - 沒有骰子,同樣的錯誤。 –