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

Python3 - ImportError: cannot import name 'protos' #63

Closed
john-best opened this issue Jul 21, 2016 · 4 comments
Closed

Python3 - ImportError: cannot import name 'protos' #63

john-best opened this issue Jul 21, 2016 · 4 comments

Comments

@john-best
Copy link
Contributor

john-best commented Jul 21, 2016

Python 3.5.1 (default, Mar  4 2016, 01:39:17)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pgoapi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/site-packages/pgoapi/__init__.py", line 19, in <module>
    from pgoapi.pgoapi import PGoApi
  File "/usr/local/lib/python3.5/site-packages/pgoapi/pgoapi.py", line 33, in <module>
    from pgoapi.rpc_api import RpcApi
  File "/usr/local/lib/python3.5/site-packages/pgoapi/rpc_api.py", line 39, in <module>
    from . import protos
ImportError: cannot import name 'protos'

I'm on Debian stretch running Python 3.5.1 with protobuf3.0.0b4. I'm not sure if there's something I'm missing or if I have installed the wrong dependency. Thanks!

@john-best john-best changed the title Python3 - Python3 - ImportError: cannot import name 'protos' Jul 21, 2016
@john-best
Copy link
Contributor Author

john-best commented Jul 21, 2016

Issue was because I was outside of the directory of pgoapi. For some reason I thought setup.py would have allowed system-wide access to the pgoapi library but it seems I was mistaken.

@tejado
Copy link
Owner

tejado commented Jul 21, 2016

Problem is, that the protos wont be installed yet... stupid installer stuff... will be fixed soon

@tejado tejado reopened this Jul 21, 2016
@tejado
Copy link
Owner

tejado commented Jul 21, 2016

Should be fixed now. setup.py also installs the proto system-wide now.

@tejado tejado closed this as completed Jul 21, 2016
@john-best
Copy link
Contributor Author

Works on my machine 👍

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

No branches or pull requests

2 participants