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

ImportError: cannot import name rethinkdb_pbcpp #1438

Closed
AtnNn opened this issue Sep 13, 2013 · 2 comments
Closed

ImportError: cannot import name rethinkdb_pbcpp #1438

AtnNn opened this issue Sep 13, 2013 · 2 comments
Assignees
Milestone

Comments

@AtnNn
Copy link
Member

AtnNn commented Sep 13, 2013

The python cursor tests sometimes fail with:

Traceback (most recent call last):
  File "connections/cursor.py", line 10, in 
    import rethinkdb as r
  File "../../drivers/python/rethinkdb/__init__.py", line 3, in 
    from .net import connect, Connection, Cursor, protobuf_implementation
  File "../../drivers/python/rethinkdb/net.py", line 12, in 
    from . import rethinkdb_pbcpp
ImportError: cannot import name rethinkdb_pbcpp

A glance at the code shows that rethinkdb_pbcpp is imported in two different ways:

from . import rethinkdb_pbcpp

import rethinkdb_pbcpp

I think this is with python 2.7.2+

Assigning to myself, I will investigate more later.

@ghost ghost assigned AtnNn Sep 13, 2013
@neumino
Copy link
Member

neumino commented Sep 13, 2013

I got this error sometimes when PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp and the protobuf is not available.

@AtnNn
Copy link
Member Author

AtnNn commented Sep 13, 2013

As far as I can tell, in this case it happens when PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp and the cpp backend is available. unsetting that variable results in r.protobuf_implementation=cpp

@AtnNn AtnNn closed this as completed in 6885494 Sep 14, 2013
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