GAE dev_appserver.py在macOS Mojave上找不到搜索索引

时间:2018-08-08 20:13:06

标签: python macos google-app-engine dev-appserver

我一直试图通过dev_appserver.py运行yaml文件,但这给了我一些错误。我正在MacOS Mojave公开Beta上运行此程序,并尝试了许多解决方案,例如运行不同的主机/端口并重新安装Google Cloud SDK。这是它给我的错误:

INFO     2018-08-08 19:52:23,926 devappserver2.py:178] Skipping SDK update check.
WARNING  2018-08-08 19:52:23,990 simple_search_stub.py:1196] Could not read search indexes from /var/folders/ds/3bt__b593jjbcjxg1vtqjr0w0000gn/T/appengine.None.ianlizzo/search_indexes
Traceback (most recent call last):
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 96, in <module>
    _run_file(__file__, globals())
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 90, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 515, in <module>
    main()
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 503, in main
    dev_server.start(options)
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 259, in start
    apiserver.start()
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/api_server.py", line 273, in start
    super(APIServer, self).start()
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py", line 414, in start
    raise BindError('Unable to find a consistent port for %s' % host)
google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to find a consistent port for localhost
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 754, in run
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/api/taskqueue/taskqueue_stub.py", line 2183, in MainLoop
  File "/Users/ianlizzo/google-cloud-sdk/platform/google_appengine/google/appengine/api/taskqueue/taskqueue_stub.py", line 2175, in _Wait
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 614, in wait
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 355, in wait

0 个答案:

没有答案