Open jecompton opened 1 year ago
I got this to work, no thanks to the maintainers. But hey, I can't complain! I got it to work, and it's far easier for me to fight with python dependency hell than it is to write an amazing football RL framework.
In case this helps someone, Here's what I did.
pip install --upgrade pip setuptools psutil wheel
. There is some weird regression that can come up where the setup.py in the gym version dies if you do this.pip install gfootball
pip install six
pip install tensorflow-gpu==1.15.5 dm-sonnet==1.36 psutil
. DO NOT do TF 2.x.pip install -v 'cloudpickle==1.1.1'
to make sure you're on the correct version.pip install git+https://github.com/openai/baselines.git@master
pip -v 'protobuf==3.20.3'
.python3 -m gfootball.examples.run_ppo2 --dump_full_episodes=True --render=True
If this doesn't work, try the dockers, but if you're here, you probably tried them first and failed. Good luck!
Since the docker builds aren't working, I was able to install GRF on my native Ubuntu 20.04 following the docs on this site. There were two modules that I had to pip install that weren't mentioned:
six
andbaselines
.I pip installed those, and then verified it ran with
python -m gfootball.play_game --action_set=full
. The field came up fine with all the players running around and such.However, when I tried to run the ppo2 training with
python -m gfootball.examples.run_ppo2 --level=academy_empty_goal_close
, I got this error:ModuleNotFoundError: No module named 'baselines.common.models
I looked around on the web, but couldn't figure out which version of baselines might have that. I tried a few, but no luck.