Skip to content
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

A problem about the wrappers #13

Closed
shinshiner opened this issue Oct 6, 2017 · 2 comments
Closed

A problem about the wrappers #13

shinshiner opened this issue Oct 6, 2017 · 2 comments

Comments

@shinshiner
Copy link

Hello, I am very interested in this repo and I want to reproduct the result. However, when I run the train.py in child mode(I am not familiar with tmux), it report an error that

Traceback (most recent call last):
  File "worker.py", line 188, in <module>
    tf.app.run()
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 43, in run
    sys.exit(main(sys.argv[:1] + flags_passthrough))
  File "worker.py", line 180, in main
    run(args, server)
  File "worker.py", line 27, in run
    noLifeReward=args.noLifeReward)
  File "/home/shin/noreward-rl/src/envs.py", line 23, in create_env
    return create_mario(env_id, client_id, **kwargs)
  File "/home/shin/noreward-rl/src/envs.py", line 106, in create_mario
    env = modewrapper(acwrapper(env))
  File "/home/shin/noreward-rl/src/ppaquette_gym_super_mario/wrappers/action_space.py", line 31, in __init__
    self.action_space = gym.spaces.multi_discrete.DiscreteToMultiDiscrete(self.action_space, mapping)
AttributeError: module 'gym.spaces.multi_discrete' has no attribute 'DiscreteToMultiDiscrete'

It seems that the environment encounts some problems, have you met this error ? I can use gym.spaces.multi_discrete.DiscreteToMultiDiscrete in my other python script. Do you have some ideas about this issue ?

@pathak22
Copy link
Owner

pathak22 commented Oct 6, 2017

This is gym version issue. But if you follow the instructions in ReadMe exactly, it should not come. Seems like you installed gym separately manually.

@shinshiner
Copy link
Author

OK, I tried the whole process again and now I can successfully run the training code, thank you very much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants