HighwayEnv icon indicating copy to clipboard operation
HighwayEnv copied to clipboard

parking_model_based.ipynb google cloab has error

Open 945716994 opened this issue 2 years ago • 1 comments

While i run the parking_model_based.ipynb example, the google cloab get a error: ImportError: cannot import name 'RecordVideo' from 'gym.wrappers' 。

945716994 avatar May 09 '22 11:05 945716994

Interesting, apparently gym==0.17.3 is installed by default on Colab, but the RecordVideo wrapper only appeared on gym==0.21 or 0.22. I recently made it a required dependency of highway-env, but I havent generated a stable version with this change yet, which is why the gym version does not get upgraded automatically when installing stable highway env.

In the meantime, you can fix it either by installing the dev version of highway env; i.e. replace !pip install highway-env by !pip install git+https://github.com/eleurent/highway-env

or alternatively simply add !pip install gym==0.23.1 in the beginning.

eleurent avatar May 13 '22 14:05 eleurent