duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
51 stars 19 forks source link

NameError: name 'DuckietownEnv' is not defined #73

Closed breandan closed 6 years ago

breandan commented 6 years ago

Received this error running on Docker on the master branch:

root@6d4e86d03b76:/gym-duckietown# python3 pytorch_rl/main.py         --algo a2c         --env-name Duckietown-small_loop-v0         --lr 0.0002         --max-grad-norm 0.5         --no-vis         --num-steps 20
Traceback (most recent call last):
  File "pytorch_rl/main.py", line 298, in <module>
    main()
  File "pytorch_rl/main.py", line 59, in main
    envs = DummyVecEnv(envs)
  File "/gym-duckietown/pytorch_rl/vec_env/dummy_vec_env.py", line 6, in __init__
    self.envs = [fn() for fn in env_fns]
  File "/gym-duckietown/pytorch_rl/vec_env/dummy_vec_env.py", line 6, in <listcomp>
    self.envs = [fn() for fn in env_fns]
  File "/gym-duckietown/pytorch_rl/envs.py", line 15, in _thunk
    basePort = DuckietownEnv.SERVER_PORT
NameError: name 'DuckietownEnv' is not defined
maximecb commented 6 years ago

I think your repo might be out of date?

breandan commented 6 years ago

Whoops, yep I was using a stale branch.