I'm trying to use the Tweepy Library to follow a user. This means using the Streaming API. I'm using the Google App Engine SDK release: "1.9.40". Everything works on my Dev server but when I deploy to Production, it stops working. I don't get an error.
Basically what is happening is - the code I have in on_status is not being triggered. I added a checkpoint and it is not being printed to the log file. But on Dev, it is being triggered.
def on_status(self, status):
decoded = json.loads(status)
logger.info(decoded) # Checkpoint
I saw some older posts (2013...) that said streaming is not supported on App Engine but I just want to confirm if that is still the case in 2016. And if it is not supported, how come it works on the Dev env? Finally, what are my alternatives?
Thanks
App Engine does not support streaming. You can use a Compute Engine instance instead.
Related
I am evaluating Symfony 5.0.1 with Google Cloud Application Flexible Engine.
I couldn't use Memcache service provided in App Engine because I don't know which "memcached_host" should be used.
Memcache in Application Engine
I tried using "session_memcached_host:localhost" in services.yaml but it doesn't work
Same Project of Symfony is tested locally and it works well with local Memcache server (in my local setup).
Here is an example of a PHP app using memcache on Google App Engine Standard.
Here specifically you can see how you should configure memcache to work on App Engine
I have tried the example above myself and it's working as expected.
NOTE: You have mentioned App Engine Flex but provided examples and docs on
Standard.
Memcache is currently generally available for App Engine Standard.
Please keep in mind that there are huge differences between App Engine Flex and Standard.
I am not App Engine expert but looking at the example below it appears you can directly call it from your code. Everything is preconfigured and you can just call it directly from your code. See the link below for further information:
https://medium.com/google-cloud/appengine-memcache-service-google-cloud-platform-8214ee9eada1
I am trying to create a web application using python on the google cloud platform. I have followed Google's quick-start guide and completed it.
App currently just prints out text
However, I am struggling to figure out a way to create a gui. I am aware of the python modules tk and tkinter and I have tried to use those with no success. I also saw the warning in the Google Cloud Console about how installed modules only exist for the current instance of the app - but even when installing the module directly before deploying the app - it still throws an import error.
I did some research and followed this guide: https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27
Assuming I didn't miss any steps - would this guide solve my problem? Or is there a better way to create a GUI?
Any suggestions are encouraged. Thanks
App Engine is web oriented service. Read about it in the overview and the appropriate gui there would be a web based one.
If you want to have a remote server that will server graphical applications look closer at Google Cloud Compute Engine where you can have a VM instance, where you can install and run any application.
I am trying to follow the instructions on this page, and they are working great, until the part where I deploy from my Google App Engine Launcher. When I click deploy I should see something like this:
But instead, I see something like this:
and the end result is that my app doesn't get deployed to xxxxxxx.appspot.com, it redirects me to http://localhost:8080/?code=4/EfmizPdAPVDgoSInA8mS1KVOvQTkWX4ziFnEpG3XKxA#
I'm a begginer with this kind of tech, please, any suggestions on how to troubleshoot?
Found the answer here. In my case, what worked was to first disable the app in the App Engine Launcher, and only then hit deploy. First time I tried, it authenticated, then second time I deployed, it deployed successfully. Thanks Arnie.
In case, I post his other suggestions:
1) remember to give your google id access to less secure apps.
2) remember to go to appspot.com or https://appengine.google.com/ and accept terms and conditions. Your project should also be active on https://console.developers.google.com/project
3) use correct versions of python and google app engine SDK
4) Before hitting deploy button on google app engine stop the app from running on your local host. It will NOT deploy while it is running locally on local host.
I have develop a simple app to learn Django rest framework and then uploaded it into Google app engine. But each time I try to access my data it shows me "no module name rest_framework". it works ok if I dont use Google App engine and stop working if I use (both local install or deploy the codes). I am using django 1.4 and using Cloud SQL. Can anyone please tell me what might be the problem?
regards
Samin
screenshot:
A bit late but might help someone else, I was also trying to get a solution for this error then I came across this link which has all the thirdparty apps, google app engine support. It doesn't have rest_framework.
So a as a solution you will have to copy the third-party library's pure-Python source code into your application's source code.
here is a solution in detail.
Hope that helps!
I have been trying to integrate Google calendar into a Django application running on App Engine. I have managed to get the google-python-client-api working on my computer and even managed to get a Django app to run on my computer. However, I am unable to get the app compatible with the Django app that is deployed on the appengine. I tried importing all the dependencies - httplib, gdata, gflags but when I run that project it still gives me 500 error. Is there a way to make these 3 things play nice with each other or should I look to deploy Django natively somewhere else?
This is what finally solved my problem. :-
I went into oauth2client/client.py, and there's a conditional before the
CACHED_HTTP = httplib2.Http('.cache')
so I commented out the conditional so it uses the other case:
CACHED_HTTP = httplib2.Http()
automatically, and this one does not call makedirs.
Found on: - https://groups.google.com/forum/?fromgroups#!topic/google-appengine-python/tIwjdy28MzQ