简体   繁体   English

ImportError:没有名为google.appengine.ext的模块(Cloud Endpoints Frameworks v2)

[英]ImportError: No module named google.appengine.ext (Cloud Endpoints Frameworks v2)

I am trying to use google endpoint v2 following this tutorial 我正在尝试按照本教程使用google endpoint v2

I have done all steps up until the To generate the required configuration file: Step 我已完成所有步骤,直到生成所需的配置文件:步骤

But when i try the following command 但是,当我尝试以下命令

python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname echo-api.endpoints.xxxxxxx.appspot.com python lib / endpoints / endpointscfg.py get_swagger_spec main.EchoApi --hostname echo-api.endpoints.xxxxxxx.appspot.com

I get the following warning and error 我收到以下警告和错误

WARNING: Could not find the fix_sys_path() function in dev_appserver. 警告:在dev_appserver中找不到fix_sys_path()函数。
If you encounter errors, please make sure that your Google App Engine SDK is up-to-date. 如果您遇到错误,请确保您的Google App Engine SDK是最新的。
Traceback (most recent call last): Traceback(最近一次调用最后一次):
File "lib/endpoints/endpointscfg.py", line 59, in 文件“lib / endpoints / endpointscfg.py”,第59行,in
import _endpointscfg_setup # pylint: disable=unused-import import _endpointscfg_setup #pylint:disable = unused-import
File "D:\\Libraries\\Documents\\transporter\\lib\\endpoints_endpointscfg_setup.py", line 107, in 文件“D:\\ Libraries \\ Documents \\ transporter \\ lib \\ endpoints_endpointscfg_setup.py”,第107行,
` _SetupPaths() `_SetupPaths()
File "D:\\Libraries\\Documents\\transporter\\lib\\endpoints_endpointscfg_setup.py", line 103, in _SetupPaths _SetupPaths中的文件“D:\\ Libraries \\ Documents \\ transporter \\ lib \\ endpoints_endpointscfg_setup.py”,第103行
from google.appengine.ext import vendor 来自google.appengine.ext导入供应商
ImportError: No module named google.appengine.ext ImportError:没有名为google.appengine.ext的模块

And no OpenAPI configuration file is generated 并且不会生成任何OpenAPI配置文件

I have reinstalled everything,updated everything , checked system variables but still getting the error 我重新安装了所有内容,更新了所有内容,检查了系统变量,但仍然收到错误

ps on windows 7 在Windows 7上的ps

@HondaGuy's Comment was the answer I added app-engine to my python path, @ HondaGuy的评论是我在我的python路径中添加app-engine的答案,

my python environment variable now looks like this 我的python环境变量现在看起来像这样

C:\\Python27\\Lib;C:\\Python27\\DLLs;C:\\Python27\\Lib\\lib-tk;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\platform\\bundledpython;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\platform\\google_appengine; C:\\ Python27 \\ Lib; C:\\ Python27 \\ DLLs; C:\\ Python27 \\ Lib \\ lib-tk; C:\\ Program Files(x86)\\ Google \\ Cloud SDK \\ google-cloud-sdk \\ platform \\ bundledpython; C :\\ Program Files(x86)\\ Google \\ Cloud SDK \\ google-cloud-sdk \\ platform \\ google_appengine;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python上的Google App Engine“ ImportError:没有名为google.appengine.ext的模块” - Google App Engine on Python “ImportError: No module named google.appengine.ext” Google App Engine:ImportError:没有名为appengine.ext的模块 - Google App Engine: ImportError: No module named appengine.ext 云端点-ImportError:没有名为端点的模块 - Cloud Endpoints - ImportError: No module named endpoints ImportError:AppEngine 中没有名为 cloud 的模块,python - ImportError: No module named cloud in AppEngine, python ImportError:没有名为google.appengine.api的模块 - ImportError: No module named google.appengine.api ImportError:使用 docker 时没有名为 appengine.ext 的模块 - ImportError: No module named appengine.ext while using docker 从google.appengine.ext.webapp.util导入run_wsgi_app ImportError:没有名为google.appengine.ext.webapp.util的模块 - from google.appengine.ext.webapp.util import run_wsgi_app ImportError: No module named google.appengine.ext.webapp.util ImportError:没有名为端点的模块 - ImportError: No module named endpoints 没有名为 appengine.ext google app engine 的模块 - No module named appengine.ext google app engine Python ImportError:如何解决Google Appengine项目中的“没有名为main的模块”? - Python ImportError: How to resolve “No module named main” in Google appengine project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM