我正在应用程序引擎上的for Cloud框架进行工作。我试图通过调用端点工具来生成OpenAPI配置文件,并获得以下错误:
python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname echo.endpoints.[YOUR-PROJECT-ID].cloud.goog
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 59, in <module>
import _endpointscfg_setup # pylint: disable=unused-import
File "/Users/myName/lab/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_setup.py", line 98, in <module>
_SetupPaths()
File "/Users/myName/lab/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_setup.py", line 94, in _SetupPaths
from google.appengine.ext import vendor
ImportError: No module named appengine.ext我的理解是,这是某种包装问题吗?这里讨论的是这个问题,但我仍然被困住了:spec。任何帮助都将不胜感激。
发布于 2017-01-20 07:49:00
结果发现这是我的系统变量路径的一个问题。具体来说,我补充道:
ENDPOINTS_GAE_SDK=“通向google_appengine的道路”
https://stackoverflow.com/questions/41145207
复制相似问题