[英]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-importimport _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.extImportError:没有名为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.