0
我正在通過App Engine上的Cloud Endpoints框架的Python快速入門。我試圖通過調用端點工具生成的OpenAPI的配置文件,並得到這個錯誤:如何在生成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
我的理解是,這是某種形式的包裝問題?這是在這裏討論的問題,但我仍然卡住:Error running endpointscfg.py get_swagger_spec。任何幫助將非常感激。
嘿,我被困在您在上面的鏈接的問題回答了同樣的問題@dgmt。希望你能夠擴展更多的信息來解決你的問題。我已經學會了如何創建和激活一個virtualenv目錄來解決它,但我不確定 – Nicholas
*關於如何在其中使用endpointscfg.py?或者,也許你知道一些能幫助我的文檔? – Nicholas