Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Protobuf package conflicts with AppEngine Python SDK #1153

Closed
danielframe opened this issue Jan 19, 2016 · 4 comments
Closed

Python Protobuf package conflicts with AppEngine Python SDK #1153

danielframe opened this issue Jan 19, 2016 · 4 comments

Comments

@danielframe
Copy link

Note that the Python protobuf package and the Google AppEngine both use the root module name 'google' so if one package is installed, the other package can't be located.

For instance protobuf on my mac is installed to (same problem on Linux as well):
/Library/Python/2.7/site-packages/google/protobuf

This will cause the AppEngine SDK imports to fail:
Traceback (most recent call last):
File "/xxx/yyy.py", line 16, in
from google.appengine.api import users
ImportError: No module named appengine.api

Uninstalling the protobuf library fixes the issue.

For now, I am manually removing the protobuf library from my PYTHON_PATH.

It's not really a bug related to protobuf or appengine, they just have conflicting module names that don't play nicely together so I wanted to bring it to the teams attention.

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Jan 19, 2016

@tbetbetbe, I remember you have looked into this issue before. Could you suggest a solution here?

@awan1
Copy link

awan1 commented Mar 4, 2016

bump

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Mar 4, 2016

@haberman, Josh, do you know of any solutions to this problem?

@haberman
Copy link
Member

haberman commented Mar 5, 2016

Closing in favor of #1296

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

No branches or pull requests

4 participants