Hey Michael,

It appears you found an issue in the "trendy lights" demo. You should file 
an issue on the github repo and link this thread for context. It seems you 
did indeed find the source of the issue in the changed name of the function.

Cheers,

Nick
Cloud Platform Community Support

On Wednesday, September 21, 2016 at 10:05:44 AM UTC-4, Michael Johansson 
wrote:
>
> *Update:*
> This seems to be an issue with how the authentication is done in the 
> example. It seems that it has changed since the example was written.
>
> As a newcomer to the App engine, this is pretty confusing to wrap my head 
> around. 
> Maybe it is really simple. I have at least been trying to figure out how I 
> can change the code in _helpers.py
> But instead of :
> AttributeError: 'module' object has no attribute 
> 'SignedJwtAssertionCredentials'
> I get: 
> AttributeError: 'module' object has no attribute 
> 'ServiceAccountCredentials'
>
> What I changed was: 
>  if key_file:
>     key_data = open(key_file, 'rb').read()
>   return oauth2client.ServiceAccountCredentials(
>       email, key_data, oauth.SCOPE)
>
> Before it was:
>       
>   if key_file:
>     key_data = open(key_file, 'rb').read()
>   return oauth2client.client.SignedJwtAssertionCredentials(
>     email, key_data, oauth.SCOPE)
>
> I was trying to follow recommendations from this 
> <http://stackoverflow.com/questions/35634085/attributeerror-module-object-has-no-attribute-signedjwtassertioncredentials>
>  
> on github 
> I've also been trying to understand the changes as they are explained 
> here: https://github.com/google/oauth2client/issues/401
>
> Maybe I'm way off here and the change is a pretty naive try to solve 
> this...
>
> //Michael
>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/16a5c1c6-d9e2-4d7d-be4b-1d1ae901b572%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to