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

2018-09-25 Thread Vitaly Bogomolov
My five cents. I think, that real power of Google Cloud is a Standard Environment. But, in other hand, it is a sandbox with strong restrictions. You must use rules of this sanbox (vendor.add and so on). And, you must forgot about Python3 on Standard Environment. If you care about Python3, you

[google-appengine] Cloud Tasks Api for Appengine flex

2018-09-25 Thread Handerson Contreras
Hi I have been reading google documentation regarding to managing tasks on appengine flex, what i read is that i need to fill in this form to enable it i did it but haven't received ne

[google-appengine] Re: Why I (can not) choose AppEngine Flexible

2018-09-25 Thread Handerson Contreras
Hey Steren How much time takes to enable the Cloud task api after fill in the form? I already filled but i haven't received news I am getting this error: google.api_core.exceptions.PermissionDenied: 403 Cloud Tasks API has not been used in project before or it is disabled I suppous the cause

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 https://cloud.google.com/ap

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

[google-appengine] Re: over quota error

2018-09-25 Thread 'Amit (Google Cloud Support)' via Google App Engine
According to this document, when an application consumes all of an allocated resource, the resource becomes unavailable until the quota is replenished. Please note the resources that required to initiate a request, if tha

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 it

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

[google-appengine] Re: Google auth default credentials for GAE standard 2nd Gen (Python)

2018-09-25 Thread 'Stewart Reichling' via Google App Engine
Hi Eric -- can you follow up with more details about your use case? On Tuesday, September 18, 2018 at 10:02:24 AM UTC-7, Eric G wrote: > > Thanks! I think I will stick with using an explicit service account json > file, but it's good to know this route works. > > On Monday, September 17, 2018 at

Re: [google-appengine] How To Install Python3 On Google APPENGINE

2018-09-25 Thread 'Phillip Pearson' via Google App Engine
I don't believe Python 3 is part of the PHP runtime. You'll have to file a feature request to get it added, or build a minimal Python distribution and upload it with your app. Regards, Phil On Tue, Sep 25, 2018 at 10:44 AM Pascoal Willkizy wrote: > Hello, i am using GAE with *php runtime *to h

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

2018-09-25 Thread 'Stewart Reichling' via Google App Engine
Hi Dewey, This page explains how to manage dependencies using Python 3. In general, the process looks like this: - declare dependencies in a `requirements.txt` file (see "Declaring and managing dependenc

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] Re: using 3rd party libraries on GAE standard with Python

2018-09-25 Thread 'Stewart Reichling' via Google App Engine
The `google.appengine` libraries are not supported in Python 3 on the App Engine standard environment. Those libraries are only supported in Python 2. Note that Python 2 will become unsupported by the Python language community on January 1, 2020 . I would recommend tha

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

2018-09-25 Thread Dewey Gaedcke
running on GAE-Std (Production), I'm getting this error: mport_app __import__(module) File "/srv/main.py", line 3, in from appengine_config import gateway # braintree File "/srv/appengine_config.py", line 2, in from google.appengine.ext import vendor ModuleNotFoundError: No module named 'goog

[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 Pyt

[google-appengine] over quota error

2018-09-25 Thread ozapeace
I am publishing the site on Google App Engine, but I am affected by referrer spam. It reaches the upper limit and an over quota error has come out. Can you respond? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this

[google-appengine] How To Install Python3 On Google APPENGINE

2018-09-25 Thread Pascoal Willkizy
Hello, i am using GAE with *php runtime *to host my page in php and i need to call my backend script created in python3. I use: *shell_exec("python3 script.py") * To call my BACKEND Script created in python3. When i do it, its return an error saying: *python3 not found.* But when i use: Python