I've tried using google-cloud-pubsub but end up having import error. It seems that google-cloud-pubsub python library is using c extesion, which is not supported in GAE standard.
On Friday, October 20, 2017 at 8:40:48 AM UTC-7, joshuamo wrote: > > Hi there! Let me jump in here and add some clarification to your original > questions. > > > 1. Is Pub/Sub still in official Beta status? > Pub/Sub is a GA product, however the google-cloud-pubsub python client > library is in beta. You can use the google api client library for python > <https://developers.google.com/api-client-library/python/apis/pubsub/v1>, > which is GA. > > > 2. Is it officially documented that you cannot use Pub/Sub with GAE > standard? > > ... snip ... > > see > https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3892 > It's referenced that the google api client libraries are the preferred way > to connect in GAE Standard, but not that the google-cloud-python libraries > don't work at all. I'll file a docbug to make this more clear. > > > 3. Will you be able to use Pub/Sub in a GAE Standard environment or will > you have to migrate to Flex? > You can absolutely use Pub/Sub in the GAE Standard environment. > > > On Thu, Oct 19, 2017 at 10:57 PM, Richard Cheesmar <[email protected] > <javascript:>> wrote: > >> Tried that too I just cannot get it to work, end of. >> >> File "/Users/chez >> 1/google-app-engine-projects/pitpit-gae/supplier/api/v1/handlers.py", line >> 9, in <module> >> import psutil >> File "/Users/chez >> 1/google-app-engine-projects/pitpit-gae/external/psutil/__init__.py", line >> 149, in <module> >> from . import _psosx as _psplatform >> File "/Users/chez >> 1/google-app-engine-projects/pitpit-gae/external/psutil/_psosx.py", line >> 16, in <module> >> from . import _psutil_osx as cext >> File >> "/usr/local/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", >> >> line 965, in load_module >> raise ImportError('No module named %s' % fullname) >> >> On Thursday, October 19, 2017 at 10:47:50 PM UTC+3, George (Cloud >> Platform Support) wrote: >>> >>> Hi Richard, >>> >>> To import various Python libraries in the standard environment, it is >>> better to follow the recommended way, as detailed in the "Using third-party >>> libraries" online document >>> <https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27#vendoring> >>> . >>> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/170378aa-95dd-45a6-aa0b-477d469b2c4d%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/170378aa-95dd-45a6-aa0b-477d469b2c4d%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > Josh Moore | Cloud Solutions Engineer | [email protected] <javascript:> > | > -- 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/b0393b91-ce7d-4b78-9c8f-789b2f3fc157%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
