danijar / dreamerv3

Mastering Diverse Domains through World Models
https://danijar.com/dreamerv3
MIT License
1.25k stars 216 forks source link

Invalid syntax in the latest repo #115

Closed swsychen closed 4 months ago

swsychen commented 4 months ago

Hi, when I tried to run the example.py with the latest repo, I ran into this issue:

Traceback (most recent call last): File "/home/chenc/dreamerv3_new/example.py", line 4, in import dreamerv3 File "/home/chenc/dreamerv3_new/dreamerv3/init.py", line 1, in from .agent import Agent File "/home/chenc/dreamerv3_new/dreamerv3/agent.py", line 4, in import embodied File "/home/chenc/dreamerv3_new/embodied/init.py", line 7, in from . import replay File "/home/chenc/dreamerv3_new/embodied/replay/init.py", line 1, in from .replay import Replay File "/home/chenc/dreamerv3_new/embodied/replay/replay.py", line 12, in from . import selectors File "/home/chenc/dreamerv3_new/embodied/replay/selectors.py", line 88 segment = prob[*path] ^ SyntaxError: invalid syntax

Could someone help me with this issue? I would be very grateful.

danijar commented 4 months ago

What's your Python version? Can you try running with a newer version?

swsychen commented 4 months ago

I just installed Python 3.11. And everything looks fine with the new version now. Thanks