carpedm20 / carpedm20/deep-rl-tensorflow
TypeError: __init__() got an unexpected keyword argument 'timestep_limit'
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
Can't train the DQN!, I have installed gym[all] and tensorflow 1.9.0 with python 3.6.8, any idea?
`$ python main.py --network_header_type=nature --env_name=Breakout-v0
Traceback (most recent call last):
File "main.py", line 10, in
from environments.environment import ToyEnvironment, AtariEnvironment
File "/media/bigdata/Solid2/DQN/deep-rl-tensorflow-master/environments/environment.py", line 6, in
from .corridor import CorridorEnv
File "/media/bigdata/Solid2/DQN/deep-rl-tensorflow-master/environments/corridor.py", line 131, in
timestep_limit=100,
File "/home/bigdata/.conda/envs/tensorflow/lib/python3.6/site-packages/gym/envs/registration.py", line 153, in register
return registry.register(id, **kwargs)
File "/home/bigdata/.conda/envs/tensorflow/lib/python3.6/site-packages/gym/envs/registration.py", line 147, in register
self.env_specs[id] = EnvSpec(id, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'timestep_limit'
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in environments/corridor.py around the registration at line 131, then inspect the Gym registration API referenced in the traceback. Reproduce the failure with the documented main.py command and the reported environment versions. Done means the environment imports and the DQN command starts without the timestep_limit TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100