-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Version of gym for a2c #315
Comments
I was able to update to 10.3 and get A2C to work. However, ACKTR still is not working. After running: python -m baselines.acktr.run_atari I get:
If this is working for anybody else please let me know your setup. |
Has anyone been able to get around this issue for acktr? |
I add comment in kfac.py at lines 120 to avoid this error, but I don't know it whether or not brings some problems. |
upgrade your version of gym(I think 0.9.6 is latest verified at the time of writing this)
|
I am still facing this issue. Can anyone tell me how to fix this |
Today I was able to get the baslines installed with gym and run some examples. From other posts, for installing mujoco-pi the following combination had to be used:
python 3.5.2
mujoco 131
mujoco_py 0.5.7
gym 0.9.3
This combination works for some things however my goal is to train a2c on atari games so when I run
(gym-py35) teves@teves:~$ python -m baselines.a2c.run_atari
I get the error:
Traceback (most recent call last):
File "/home/teves/anaconda3/envs/gym-py35/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/home/teves/anaconda3/envs/gym-py35/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/teves/baselines/baselines/a2c/run_atari.py", line 4, in
from baselines.common.cmd_util import make_atari_env, atari_arg_parser
File "/home/teves/baselines/baselines/common/cmd_util.py", line 7, in
from gym.wrappers import FlattenDictWrapper
ImportError: cannot import name 'FlattenDictWrapper'
This seems like because I am running an older gym version. Is that correct? What versions of the above shoule I have installed to use a2c?
update: I was able to upgrade to gym 0.10.3 and was able to install mujoco using pip install mujoco-py==0.5.7 however I was not able to install it using: pip install -e '.[mujoco]'.
Then I was able to run a2c example but not acktr.
(gym) teves@teves:~$ python -m baselines.acktr.run_atari
The text was updated successfully, but these errors were encountered: