简体   繁体   English

在python flex环境中导入错误google.appengine.api

[英]Import error google.appengine.api in python flex environment

While importing appengine api in to python flex environment causing import error in local server. 将appengine api导入python flex环境时,导致本地服务器中的导入错误。 I have and application running on appengine which is using the flex environment instead of standard. 我的应用程序运行在使用flex环境而非标准环境的appengine上。

In my codebase the app directory contains python scripts and yaml file. 在我的代码库中,应用程序目录包含python脚本和yaml文件。 When I try to run the py file which through this error. 当我尝试通过此错误运行py文件时。

Run command
$ python main.py

from google.appengine.api import app_identity
ImportError: No module named appengine.api

The App Engine flexible environment does not provide the API libraries present in the App Engine SDK. App Engine灵活环境不提供App Engine SDK中提供的API库。

Please check this link Migrating Services from the Standard Environment to the Flexible Environment 请检查此链接,将服务从标准环境迁移到灵活环境

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

相关问题 无法导入google.appengine.api - can't import google.appengine.api import cloudstorage,ImportError:没有名为google.appengine.api的模块 - import cloudstorage, ImportError: No module named google.appengine.api 在 Ubuntu 18.04 中找不到 Python google.appengine.api - Python google.appengine.api not found in Ubuntu 18.04 ImportError:没有名为google.appengine.api的模块 - ImportError: No module named google.appengine.api Visual Code pylint:无法导入 webapp2 和 google.appengine.api - Visual Code pylint: unable to import webapp2 and google.appengine.api 升级到 GAE3 时替换 google.appengine.api 导入模块 - Replacing google.appengine.api import modules when upgrading to GAE3 尝试从google.appengine.api中导入background_thread(例如示例)失败,并出现ImportError - Trying to Import background_thread from google.appengine.api (like in example) fails with ImportError 在不使用dev_appserver.py的情况下从google.appengine.api导入memcache - Importing memcache from google.appengine.api without using dev_appserver.py 谷歌appengine的python样板获取导入错误? - python boilerpipe with google appengine getting import error? AppEngine映射器API导入错误 - AppEngine mapper API import error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM