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

Importing uplink_protobuf before uplink causes ImportError #1

Open
prkumar opened this issue Sep 15, 2018 · 0 comments
Open

Importing uplink_protobuf before uplink causes ImportError #1

prkumar opened this issue Sep 15, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@prkumar
Copy link
Owner

prkumar commented Sep 15, 2018

Importing uplink_protobuf before uplink raises the following exception:

>>> import uplink_protobuf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/uplink_protobuf/__init__.py", line 2, in <module>
    from uplink_protobuf import json_options
  File "/usr/local/lib/python2.7/site-packages/uplink_protobuf/json_options.py", line 3, in <module>
    from uplink import decorators
  File "/usr/local/lib/python2.7/site-packages/uplink/__init__.py", line 91, in <module>
    _load_entry_points()
  File "/usr/local/lib/python2.7/site-packages/uplink/_extras.py", line 40, in load_entry_points
    for entry_point in _iter_entry_points(name)
  File "/usr/local/lib/python2.7/site-packages/uplink/_extras.py", line 40, in <dictcomp>
    for entry_point in _iter_entry_points(name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2328, in resolve
    raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'ProtocolBuffersConverter'

Interestingly, after uplink_protobuf fails to import, uplink starts throwing an ImportError on each import.

>>> import uplink
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/uplink/__init__.py", line 4, in <module>
    from uplink import returns, types
ImportError: cannot import name returns

Verified on Python 2.7.15

@prkumar prkumar added the bug Something isn't working label Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant