Re: [google-appengine] using 3rd party libraries on GAE standard with Python

2018-09-25 Thread 'Rahul Ravindran' via Google App Engine
Unfortunately, dev_appserver does not yet work with Python 3.x(See https://cloud.google.com/appengine/docs/standard/python3/testing-and-deploying-your-app#local-dev-server). You need to run it from a virtualenv which is running python 2.7. Alternatively, as specified in

Re: [google-appengine] using 3rd party libraries on GAE standard with Python

2018-09-25 Thread Dewey Gaedcke
$ make serve export CLOUDSDK_PYTHON=/Users/dgaedcke/dev/client/nmg/nmg_payments_api/env/bin dev_appserver.py --clear_datastore 0 --logs_path=/tmp/gaelogs --log_level=warning \ --host 0.0.0.0 app.yaml ERROR: Python 3 and later is not compatible with the Google Cloud SDK. Please use Python

Re: [google-appengine] using 3rd party libraries on GAE standard with Python

2018-09-25 Thread 'Rahul Ravindran' via Google App Engine
Could you paste the entire command surface? Additionally, which version of Google Cloud SDK are you using? On Tue, Sep 25, 2018 at 2:25 PM Dewey Gaedcke wrote: > Thanks for the response and clarification!! > I remember being told way back NOT to use venv with GAE & so all these > posts where

Re: [google-appengine] using 3rd party libraries on GAE standard with Python

2018-09-25 Thread Dewey Gaedcke
Thanks for the response and clarification!! I remember being told way back NOT to use venv with GAE & so all these posts where it is now being shown is very confusing. Using Py3.7, I'm now getting: ERROR: Python 3 and later is not compatible with the Google Cloud SDK. Please use Python version

Re: [google-appengine] using 3rd party libraries on GAE standard with Python

2018-09-25 Thread 'Phillip Pearson' via Google App Engine
Sorry for the confusion! The vendored approach (installing into lib/ and adding an appengine_config.py file) is correct for Python 2.7 on the standard environment: https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27 Python 3.7 on the standard environment and

[google-appengine] using 3rd party libraries on GAE standard with Python

2018-09-25 Thread Dewey Gaedcke
The amount of conflicting info about Python/GAE best practices is very frustrating. Can someone please clarify: Should we use the vendored approach: from google.appengine.ext import vendor vendor.add('lib') Or should we use VENV? And is there a hybrid approach using both to accommodate most