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

TypeError, 'Regexp cannot be negated' in ReDo when running sac_train_eval.py #218

Open
seekingpure opened this issue Dec 14, 2023 · 2 comments

Comments

@seekingpure
Copy link

I tried to run sac_train_eval.py with sac_mujoco_dense_config.gin, and I used the following command:
python -um dopamine.labs.redo.train --base_dir /tmp/dopamine_runs --gin_files dopamine/labs/redo/tfagents/configs/sac_mujoco_dense_config.gin

I tried to run this both in linux and windows operating system, and I met the same error as follows:
Traceback (most recent call last):
File "D:/experiments/2023.12.11 dopamine/dopamine-master/dopamine/labs/redo/tfagents/sac_train_eval.py", line 26, in
import reverb
File "D:\Anaconda3\envs\mujocotaac\lib\site-packages\reverb.py", line 64
raise TypeError, 'Regexp cannot be negated'
^
SyntaxError: invalid syntax
I guess this is related to the version of the revert package, so I tried to change the version. But it did not work.
I wonder if there is another way to slove this problem. Looking forward to your reply. Thanks.

@Dharun-maxie
Copy link

It seems like the issue you're encountering is related to a Python 2 syntax incompatibility. Use ''python3'' in the Command Line

@hilanzy
Copy link

hilanzy commented May 20, 2024

Maybe you install with a wrong package named reverb, and you should install dm-reverb.

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

3 participants