Google App Engine 上的 Python 2 到 3 转换

问题描述 投票:0回答:1

我正在将 Python 2 转换为 3。转换时,我收到此错误:

断言错误:找不到服务“memcache”的 API 代理

创建以下类时出现此异常。

from google.appengine.ext import ndb

from api import fields
import config
import model
import util


class Config(model.Base, model.ConfigAuth):

from google.appengine.ext import ndb

class Base(ndb.Model):

我可以像在 Python 2 中一样在 Python 3 中使用 google.appengine.ext 吗? api代理是什么?

python-3.x google-app-engine python-memcached
1个回答
0
投票

是的,Python 3 支持 Google App Engine 捆绑服务/API。

查看说明这里

注意: 您必须使用

dev_appserver.py
来运行您的应用程序,否则您会收到类似的错误

google.appengine.runtime.apiproxy_errors.RPCFailedError: Attempted RPC call without active security ticket
© www.soinside.com 2019 - 2024. All rights reserved.