Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Recent addition breaks library on Google App Engine. #149

Open
jstephenson opened this issue Jan 24, 2017 · 4 comments
Open

Recent addition breaks library on Google App Engine. #149

jstephenson opened this issue Jan 24, 2017 · 4 comments

Comments

@jstephenson
Copy link

jstephenson commented Jan 24, 2017

The recent addition of a use of multiprocessing has broken this on Google App Engine (as it doesn't support mp).

https://github.com/googleapis/gax-python/blame/4e15ca6412b54950c20705a72cda54ee27ba9436/google/gax/__init__.py#L35

Upon execution (truncated):

     [exec]   File "/path-to-packages/google/gax/__init__.py", line 35, in <module>
     [exec]     import multiprocessing as mp
     [exec]   File "/usr/lib/python2.7/multiprocessing/__init__.py", line 65, in <module>
     [exec]     from multiprocessing.util import SUBDEBUG, SUBWARNING
     [exec]   File "/usr/lib/python2.7/multiprocessing/util.py", line 41, in <module>
     [exec]     from subprocess import _args_from_interpreter_flags
     [exec] ImportError: cannot import name _args_from_interpreter_flag

Obviously this is quite the inconvenience for GCP customers who want to use the GAX backend for Google's APIs.

@nilleb
Copy link

nilleb commented Feb 17, 2017

A gist about how to address this problem (kind of hack): https://gist.github.com/nilleb/419122f2f6f1228650dd2dccbd01c5af

@theacodes
Copy link

@jstephenson we're looking into this. As a heads up, even if you get gax to work, grpc-based APIs will not work on App Engine standard right now.

@nilleb
Copy link

nilleb commented Feb 17, 2017 via email

@theacodes
Copy link

@nilleb grpc isn't yet supported on App Engine standard.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants