[google-appengine] Google Appengine Python - ImportError No module named appengine.api

2017-04-07 Thread Diego Molteni
Hi All,

I have this problem and I really don't know how to fix it any help?


from oauth2client.contrib.appengine import AppAssertionCredentials
def generate_jwt():
credentials = AppAssertionCredentials(
'https://www.googleapis.com/auth/iam')

Enter code her
from google.appengine.api import app_identity
ImportError: No module named appengine.api
e...

Thanks :)
Diego

-- 
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/7ead0afe-b0b1-44d4-93b5-81ec4e882223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine - Import Error no module named appengine.api

2017-04-07 Thread Diego Molteni
Hi All,

I have this problem and I really don't know how to fix it any help?


from oauth2client.contrib.appengine import AppAssertionCredentials
def generate_jwt():
credentials = AppAssertionCredentials(
'https://www.googleapis.com/auth/iam')

from google.appengine.api import app_identity
ImportError: No module named appengine.api


Thanks :)
Diego

-- 
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/f73c6891-31e0-4e8a-9970-5db592c7cc23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] 502 bad request from Facbook Canvas

2017-04-07 Thread Peter Adams

Hi

Can someone help me with a strange problem.

We have out website at Google Cloud and we have Cloudflare activated on the 
domain.

Our website is fine, however the same website within and iframe on facebook 
Canvas is intermittently returning 502 bad request errors.

Can anyone help me fix this?

Regards
Pete

-- 
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/16befe59-d4fd-4035-88f8-942e3dd64943%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Not able to register for Google Cloud Platform Free Trial

2017-04-07 Thread Sarmistha Guha Thakurta
I was trying to register for the Free Trial of Google Cloud Platform. 
However, after I filled up my data and credit card details, though My VISA 
credit card was debited with $1 but I was shown an error "Transaction was 
declined due to an Invalid Payment". I tried with AMEX card as well but 
still the same error?
#GoogleCloudPlatform #FreeTrial #GCP

-- 
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/555a041b-0aba-4b28-acc7-f0cebdf6c30d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Downloading Logs

2017-04-07 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
Google Groups is meant for general product discussions an not for technical 
support. 

I recommend you star the Public Issue Tracker 
 for this issue so that you may 
receive email updates on any progress. 

- Note the workaround is to use the newer '*gcloud app logs read*' 
 or *'gcloud 
app logs tail' 
 *commands.

-- 
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/42333a33-20b3-43cc-a544-f2ce557bc264%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Not able to register for Google Cloud Platform Free Trial

2017-04-07 Thread 'Jun (Cloud Platform Support)' via Google App Engine
Hi, reaching out to the billing team by filing a billing support request at 
[1] will be the best place to ask for assistance for your situation. 

[1] https://support.google.com/cloud/contact/cloud_platform_billing


On Friday, April 7, 2017 at 9:19:54 AM UTC-4, Sarmistha Guha Thakurta wrote:
>
> I was trying to register for the Free Trial of Google Cloud Platform. 
> However, after I filled up my data and credit card details, though My VISA 
> credit card was debited with $1 but I was shown an error "Transaction was 
> declined due to an Invalid Payment". I tried with AMEX card as well but 
> still the same error?
> #GoogleCloudPlatform #FreeTrial #GCP
>

-- 
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/4961120b-ce2b-412e-be2a-e44f65b08695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 502 bad request from Facbook Canvas

2017-04-07 Thread 'Jun (Cloud Platform Support)' via Google App Engine
Hi,

Do you have related logs from the Logging at the Dev Console? And also 
please provide other relevant details and info will help to troubleshoot 
this. 



On Friday, April 7, 2017 at 6:44:21 AM UTC-4, Peter Adams wrote:
>
>
> Hi
>
> Can someone help me with a strange problem.
>
> We have out website at Google Cloud and we have Cloudflare activated on 
> the domain.
>
> Our website is fine, however the same website within and iframe on 
> facebook Canvas is intermittently returning 502 bad request errors.
>
> Can anyone help me fix this?
>
> Regards
> Pete
>

-- 
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/80e1f393-c95c-42bf-b04f-64923bcec0f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Recommended configuration for a java based App Engine standard application?

2017-04-07 Thread 'Adam (Cloud Platform Support)' via Google App Engine
You can still use Endpoints v2 tooling with the 'com.google.appengine' 
plugin as it is handled by endpoints-framework-tools and gcloud 
service-management. The only difference should be the version of the dev 
server you launch for local development. What specific issues with 
endpoints management did you encounter when switching back to the 
'com.google.appengine' plugin?

On Thursday, April 6, 2017 at 4:57:37 AM UTC-4, Þórir Gunnarsson wrote:
>
> Does anyone have any insights into endpoints v1 vs. endpoints v2? Any real 
> life success stories perhaps?
>
> We recently switched to endpoints v2 but without the endpoints management 
> functionality, I'm hesitant to go all in if this isn't being used in 
> production systems by at least a few people, or if it is not production 
> ready in general.
>
> ÞG
>
>
> On Tuesday, April 4, 2017 at 4:42:25 PM UTC, Jeff Schnitzer wrote:
>>
>> You’re not crazy, I have also seen that problem. Use the 
>> com.google.appengine 
>> maven plugin for the dev server for now. 
>>
>> I think this is the most relevant (albeit cryptic) issue that tracks that 
>> particular problem: 
>> https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/158
>>
>> The com.google.tools plugin is the future, but the future isn’t quite 
>> here yet :-(
>>
>> Jeff
>>
>> On Tue, Apr 4, 2017 at 6:49 AM, Þórir Gunnarsson <
>> thorirgu...@goodlifeme.com> wrote:
>>
>>> I am currently using Maven and IntelliJ which in itself is fine. Most of 
>>> my issues are with the Maven plugins and recently endpoints versions.
>>> The com.google.cloud.tools plugin is not entirely there it seems, but in 
>>> a lot of documentation from Google it is the go-to plugin.
>>>
>>> I tried to switch to the com.google.cloud.tools plugin the other day but 
>>> ran into an issue with the local dev server (
>>> https://issuetracker.google.com/u/1/issues/36589995) which prompted 
>>> this thread here.
>>>
>>> ÞG
>>>
>>>
>>> On Tuesday, April 4, 2017 at 1:24:52 PM UTC, Jeff Schnitzer wrote:

 Your path of least resistance is to use Maven (as opposed to Gradle or 
 Ant/Ivy). If you’re working in Java, you definitely want an IDE - Eclipse 
 and IntelliJ both have their following. I think most people will be 
 happier 
 with IntelliJ but you have to pay for it.

 There are two viable maven plugins right now:

 com.google.appengine:appengine-maven-plugin is the older and more 
 mature plugin
 com.google.cloud.tools:appengine-maven-plugin is the newer and not yet 
 perfect plugin

 I would say we are on the cusp of the newer plugin being ready for 
 default use. It currently has trouble deploying the queue/cron configs, 
 but 
 it looks like it’s getting fixed fast. I actually have both enabled in my 
 project right now.

 You also have the choice of “older vs newer” plugin for 
 Eclipse/IntelliJ. I would go with the newer one.

 Someone else will have to give you endpoints advice.

 Jeff

 On Tue, Apr 4, 2017 at 2:16 AM, Þórir Gunnarsson <
 thorirgu...@goodlifeme.com> wrote:

> Lately I have been getting some mixed signals about what should be the 
> configuration for a java based App Engine standard backend using 
> endpoints. 
> What I'm looking for is guidelines from Google or the group what would be 
> best practices. The recommended configuration should be production ready 
> and support local development and debugging.
>
> As I see it there are several options (please add if I'm missing some 
> options)
>   - Environment
> - Maven
> - Eclipse
> - Maven project in Eclipse
> - Maven project in IntelliJ
>
>   - Build plugin (assuming Maven is the way to go)
>  - com.google.cloud.tools -> appengine-maven-plugin
>  - com.google.appengine -> appengine-maven-plugin
>  - com.google.appengine -> gcloud-maven-plugin
>
>   - Endpoints
>  - Endpoints v1
>  - Endpoints v2
>
> Some reference material:
> https://cloud.google.com/appengine/docs/standard/java/
>
> https://cloud.google.com/endpoints/docs/frameworks/java/quickstart-frameworks-java
>
> https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/endpoints-frameworks-v2
>
> https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/helloworld
>
> https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/appengine/helloworld-new-plugins
>
> -- 
> 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-appengi...@googlegroups.com.
> To post to this group, send email to google-a...@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
>

Re: [google-appengine] Re: gcloud beta logging read creates huge log files in .config

2017-04-07 Thread 'George (Cloud Platform Support)' via Google App Engine
This is intended behavior: "The gcloud tool creates and stores logs in a 
log file that you can query, located at $HOME/.config/gcloud/logs. ", as 
documented at "Tips, Troubleshooting, & Known Issues 
". 

Do you use the logs in the ~/.config/gcloud/logs directory in any way? 

Do you export logs with the beta command to one of your storage buckets?

-- 
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/4a6b5b95-afbd-4cbe-8fde-86380ca70759%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: gcloud beta logging read creates huge log files in .config

2017-04-07 Thread Julian Bunn
Thanks for the info. We have no use for the gcloud beta logging tool's log
files, and would like to disable them.

Right now we are simply deleting them after the command terminates, but we
would like to avoid such a heavyweight approach, not to mention the
considerable I/O load they cause to our storage.

We are downloading the logs from our GAE application to our own archive
server: we do not use Google's storage buckets for that.

On Fri, Apr 7, 2017 at 1:55 PM, 'George (Cloud Platform Support)' via
Google App Engine  wrote:

> This is intended behavior: "The gcloud tool creates and stores logs in a
> log file that you can query, located at $HOME/.config/gcloud/logs. ", as
> documented at "Tips, Troubleshooting, & Known Issues
> ".
>
> Do you use the logs in the ~/.config/gcloud/logs directory in any way?
>
> Do you export logs with the beta command to one of your storage buckets?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/8jY242lvAHk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/4a6b5b95-afbd-4cbe-8fde-
> 86380ca70759%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAxkZQu%3DW%3D%3DVO5CVjAT1CY_X8SDYfwOPiOVMq6ySFUEntKprGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Recommended configuration for a java based App Engine standard application?

2017-04-07 Thread Þórir Gunnarsson
I didn't encounter any specific issues with the endpoints management 
functionality as such, didn't go that far, the documentation is just all 
referencing the com.google.cloud.com tools and I wanted to get some 
feedback on where these things are at before going into implementation. 
>From what I could glimpse from the documentation 
(https://cloud.google.com/endpoints/docs/frameworks/java/generate-client-libraries-android)
 
of the configuration it seemed that I need to be more explicit about what 
java classes implement endpoints, at least when generating the client 
library. At the moment I have 35 different classes with around 300 
different @ApiMethods so listing them all up and maintaining the list is 
something I need to do in a sustainable way. You could probably argue that 
I'm just lazy wanting reassurance before moving into new tech and writing 
scripts to support it :-)

Which development server should I use if I enable the endpoints management 
functionality? Does the one in com.google.appengine work?

ÞG

On Friday, April 7, 2017 at 8:50:49 PM UTC, Adam (Cloud Platform Support) 
wrote:
>
> You can still use Endpoints v2 tooling with the 'com.google.appengine' 
> plugin as it is handled by endpoints-framework-tools and gcloud 
> service-management. The only difference should be the version of the dev 
> server you launch for local development. What specific issues with 
> endpoints management did you encounter when switching back to the 
> 'com.google.appengine' plugin?
>
> On Thursday, April 6, 2017 at 4:57:37 AM UTC-4, Þórir Gunnarsson wrote:
>>
>> Does anyone have any insights into endpoints v1 vs. endpoints v2? Any 
>> real life success stories perhaps?
>>
>> We recently switched to endpoints v2 but without the endpoints management 
>> functionality, I'm hesitant to go all in if this isn't being used in 
>> production systems by at least a few people, or if it is not production 
>> ready in general.
>>
>> ÞG
>>
>>
>> On Tuesday, April 4, 2017 at 4:42:25 PM UTC, Jeff Schnitzer wrote:
>>>
>>> You’re not crazy, I have also seen that problem. Use the 
>>> com.google.appengine 
>>> maven plugin for the dev server for now. 
>>>
>>> I think this is the most relevant (albeit cryptic) issue that tracks 
>>> that particular problem: 
>>> https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/158
>>>
>>> The com.google.tools plugin is the future, but the future isn’t quite 
>>> here yet :-(
>>>
>>> Jeff
>>>
>>> On Tue, Apr 4, 2017 at 6:49 AM, Þórir Gunnarsson <
>>> thorirgu...@goodlifeme.com> wrote:
>>>
 I am currently using Maven and IntelliJ which in itself is fine. Most 
 of my issues are with the Maven plugins and recently endpoints versions.
 The com.google.cloud.tools plugin is not entirely there it seems, but 
 in a lot of documentation from Google it is the go-to plugin.

 I tried to switch to the com.google.cloud.tools plugin the other day 
 but ran into an issue with the local dev server (
 https://issuetracker.google.com/u/1/issues/36589995) which prompted 
 this thread here.

 ÞG


 On Tuesday, April 4, 2017 at 1:24:52 PM UTC, Jeff Schnitzer wrote:
>
> Your path of least resistance is to use Maven (as opposed to Gradle or 
> Ant/Ivy). If you’re working in Java, you definitely want an IDE - Eclipse 
> and IntelliJ both have their following. I think most people will be 
> happier 
> with IntelliJ but you have to pay for it.
>
> There are two viable maven plugins right now:
>
> com.google.appengine:appengine-maven-plugin is the older and more 
> mature plugin
> com.google.cloud.tools:appengine-maven-plugin is the newer and not yet 
> perfect plugin
>
> I would say we are on the cusp of the newer plugin being ready for 
> default use. It currently has trouble deploying the queue/cron configs, 
> but 
> it looks like it’s getting fixed fast. I actually have both enabled in my 
> project right now.
>
> You also have the choice of “older vs newer” plugin for 
> Eclipse/IntelliJ. I would go with the newer one.
>
> Someone else will have to give you endpoints advice.
>
> Jeff
>
> On Tue, Apr 4, 2017 at 2:16 AM, Þórir Gunnarsson <
> thorirgu...@goodlifeme.com> wrote:
>
>> Lately I have been getting some mixed signals about what should be 
>> the configuration for a java based App Engine standard backend using 
>> endpoints. What I'm looking for is guidelines from Google or the group 
>> what 
>> would be best practices. The recommended configuration should be 
>> production 
>> ready and support local development and debugging.
>>
>> As I see it there are several options (please add if I'm missing some 
>> options)
>>   - Environment
>> - Maven
>> - Eclipse
>> - Maven project in Eclipse
>> - Maven project in IntelliJ
>>
>>   - Build p