google-deepmind / reverb

Reverb is an efficient and easy-to-use data storage and transport system designed for machine learning research
Apache License 2.0
702 stars 93 forks source link

Import error after installation #96

Closed mrinal18 closed 2 years ago

mrinal18 commented 2 years ago

Hello,

I am trying to install reverb and i see this particular message when i try to import reverb

ImportError: cannot import name 'pybind' from partially initialized module 'reverb' (most likely due to a circular import) (/home/chip/Desktop/Utils/reverb/reverb/init.py)

Tensorflow version: 2.10.0-dev20220417 OS: CentOs python version: 3.9.12

commands used to install : (as per the documentation README)

Kindly help on this, Thanks

acassirer commented 2 years ago

Hi,

I'm afraid that I have no experience with CentOS so I can't really give you any advice on how to debug the issue. Maybe CentOS is not compatible with pybind11?

I'd also recommend you to also try initializing an empty virtualenv and installing Reverb together with tensorflow. On a Debian system this worked without any issues:

$ mkdir test
$ cd test 
$ python3 -m venv venv
$ source ./venv/bin/activate
$ pip install "dm-reverb[tensorflow]"
qstanczyk commented 2 years ago

Please reopen if this is still an issue.