使用此命令無法啓動開發服務器
dev_appserver.py .
我試圖部署到本地服務器但它給我的錯誤:
INFO 2015-12-18 17:09:57,667 api_server.py:205] Starting API server at: http://localhost:51776
INFO 2015-12-18 17:09:57,678 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO 2015-12-18 17:09:57,681 admin_server.py:116] Starting admin server at: http://localhost:8000
Traceback (most recent call last):
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\_python_runtime.py", line 83, in <module>
_run_file(__file__, globals())
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\_python_runtime.py", line 79, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\python\runtime.py", line 175, in <module>
main()
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\python\runtime.py", line 155, in main
sandbox.enable_sandbox(config)
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\python\sandbox.py", line 170, in enable_sandbox
_install_fake_file(config, python_lib_paths, path_override_hook)
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\python\sandbox.py", line 252, in _install_fake_file
stubs.FakeFile.set_skip_files(config.skip_files)
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\python\stubs.py", line 178, in set_skip_files
FakeFile._skip_files = re.compile(skip_files)
File "C:\python27\lib\re.py", line 190, in compile
return _compile(pattern, flags)
File "C:\python27\lib\re.py", line 245, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat
我試圖重新安裝谷歌的App Engine SDK但仍然沒有運氣。任何想法爲什麼它不工作?之前它工作過,直到我收聽並更新Cloud SDK。
謝謝你的回答!當你在app.yaml中提到'skip_files'時,我立刻進行了一次快速檢查,顯然這個錯誤在我的身邊 - 出於某種原因,一個字符被誤刪了,在星號前面的一個小圓點丟失了。 –
@Derek朕會功夫哦很好 - 很高興能有幫助! skip_files提示位於您向我們展示的追溯中,最後(接近錯誤的根本原因)正在執行're.compile(skip_files)'。 –