无法启动开发服务器
Cannot start dev server
用这个命令
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
我已尝试重新安装 Google App Engine SDK,但仍然没有成功。知道为什么它不起作用吗?之前它一直有效,直到我听了它并更新了 Cloud SDK。
您正在使用与 gcloud 捆绑在一起的 dev_appserver,它有时不是完全最新的。要绕过该问题,请按照 https://cloud.google.com/appengine/downloads?hl=en to download and install GoogleAppEngine-1.9.30.msi -- and make sure you use that dev_appserver. Also, please open a bug report about the gcloud-bundled dev_appserver at https://cloud.google.com/appengine/downloads?hl=en 处的说明进行操作(使用您在此处发布的相同信息加上您的确切 OS 和 gcloud components list
的结果来准确指出哪些组件存在错误),谢谢。
(理论上,您观察到的错误可以用 app.yaml 中错误的 skip_files
节来解释,但如果是这种情况,那么它以前不应该使用不同的 dev_appserver 发布)。
用这个命令
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
我已尝试重新安装 Google App Engine SDK,但仍然没有成功。知道为什么它不起作用吗?之前它一直有效,直到我听了它并更新了 Cloud SDK。
您正在使用与 gcloud 捆绑在一起的 dev_appserver,它有时不是完全最新的。要绕过该问题,请按照 https://cloud.google.com/appengine/downloads?hl=en to download and install GoogleAppEngine-1.9.30.msi -- and make sure you use that dev_appserver. Also, please open a bug report about the gcloud-bundled dev_appserver at https://cloud.google.com/appengine/downloads?hl=en 处的说明进行操作(使用您在此处发布的相同信息加上您的确切 OS 和 gcloud components list
的结果来准确指出哪些组件存在错误),谢谢。
(理论上,您观察到的错误可以用 app.yaml 中错误的 skip_files
节来解释,但如果是这种情况,那么它以前不应该使用不同的 dev_appserver 发布)。