Show error while converting Python 2 to Python 3

104 Views Asked by At

I am converting Python 2 to 3. When converting, I receive this error:

AssertionError: No API proxy found for service "memcache"

This exception occurs when creating the following class.

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):

Can I use google.appengine.ext in Python 3, like in Python 2? What is the API proxy?

1

There are 1 best solutions below

7
NoCommandLine On

Yes, Google App Engine Bundled Services/API is supported for Python 3.

Take a look at the instructions here.

Note: You'll have to run your App with dev_appserver.py else you'll get errors that look like

google.appengine.runtime.apiproxy_errors.RPCFailedError: Attempted RPC call without active security ticket