Dustin:
You are spot on. Working like a charm.
Before I leave the thread --
What was missing initially (that led to requirements.txt) were *httplib2*
and *oath2client*.
Noting that they are not bundled by default (per the link you sent), I just
want to make sure I am using the right libs, and I shouldn't use something
else.
The operation I'm trying to accomplish is to simply read a Firebase RTDB
item, like this (and I understand that only HTML is supported in GAE?):
def _get_http():
http = *httplib2*.Http()
creds = GoogleCredentials.get_application_default().create_scoped(
_FIREBASE_SCOPES)
creds.authorize(http)
return http
def firebase_get(path):
response, content = _get_http().request(path, method='GET')
return json.loads(content)
Once again, thank you for solving this with a blink of an eye, you're
awesome.
Yanay
On Thursday, October 4, 2018 at 8:19:28 AM UTC-7, [email protected]
wrote:
>
> Hi there,
>
> It sounds like you're deploying a Python 2 app, but specifying dependencies
> via a `requirements.txt` file is only supported with the App Engine
> Python 3 runtime.
>
> To use third-party dependencies with the Python 2 runtime, you'll need to
> bundle them with your application. See this guide for instructions:
> https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27
>
> Dustin
>
> On Thursday, October 4, 2018 at 10:17:00 AM UTC-4, [email protected]
> wrote:
>>
>> Dear GAE experts -- I'm just learning the environment and hope someone
>> can bail me out of this situation:
>>
>> I have a tiny python script (that I cut and paste from the hello-world
>> example and some others)
>> I got it to work on my laptop (that has all the SDKs, token, etc. loaded)
>> After gcloud app deploy, I get 500
>> Stackdriver : setting a point on the very first line of main.py tells me
>> that it doesn't even get there
>> So something's wrong with the lib's etc.
>> Anyone ever seen this? any clue?
>> Here's my requirements.txt:
>> flask==1.0.2
>> requests==2.19.1
>> requests_toolbelt==0.8.0
>> oauth2client==4.1.2
>> functools32==3.2.3.post2; python_version < "3"
>>
>> THANK YOU
>>
>
--
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/59cbeb51-6011-49ec-85a1-32f48bd17c61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.