juliusfrost / cfrl-rllib

5 stars 0 forks source link

Create_parser Cannot be Imported #79

Open armin-ashrafi opened 1 year ago

armin-ashrafi commented 1 year ago

When trying to run the library using

python train.py --experiment minigrid-a2c-all --env MiniGrid-FourRooms-v0

the I am confronted with this error:

ImportError: cannot import name 'create_parser' from 'ray.rllib.train' (/usr/local/lib/python3.10/dist-packages/ray/rllib/train.py)

How can this be fixed?

juliusfrost commented 1 year ago

You'll have to find a version of rllib that still has the training script. Probably your best bet is to install all the packages with the latest versions available at the time of the latest commit, by searching through pypi.org

Unfortunately we didn't use version pinning in requirements.txt at the time...