Hello Keith, As mentioned by Evan, you are indeed deployed your application to the App Engine flexible environment which generally does not include the App Engine libraries. The exception is as Evan mentioned the *python-compat* runtime which can be used with *vm: true* (to run in the flexible environment). Though you won't have Python 3 here, you'll have access to the App Engine APIs while in the flexible environment.
If you wish to use Python 3, it will have to be in the flexible environment at the moment and will not have access to the built-in App Engine APIs. You will however be able to use the RESTful equivalent for those services which have them like Cloud Datastore <https://cloud.google.com/datastore/docs/reference/rest/> and Task Queues <https://cloud.google.com/appengine/docs/python/taskqueue/rest/> to name a few. If Python 3 is not really a necessity for your application, you may want to consider deploying to the standard environment (Python 2.7) to fully appreciate the built-in APIs. If you need more specific information about each environment, please give more details about your application's needs so that we can provide more effective advice. Happy coding! On Wednesday, October 19, 2016 at 4:21:23 PM UTC-4, Keith Preston wrote: > > I've been following some of the examples, but seem to have problems > importing from the google.appengine.api once I've deployed to GAE. > Adding some debugging the error is No module named 'google' > > > Do I need to do anything special in my main.py, app.yaml or > requirement.txt to get the google.appengine.api? I can't seem to find > details about this in the documentation > > > main.py > > try: > > from google.appengine.api import urlfetch > > except Exception as e: > > error = str(e) > > > app.yaml > > runtime: python > > vm: true > > entrypoint: gunicorn -b :$PORT main:app > > runtime_config: > > python_version: 3 > > > requirements.txt > > Flask==0.11.1 > > gunicorn==19.6.0 > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/68f3817e-5b64-43a1-9c66-eff7435d401c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
