-
Notifications
You must be signed in to change notification settings - Fork 488
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
AttributeError: 'EnvSpec' object has no attribute 'timestep_limit' #191
Comments
I can confirm that this also happens with me. The pip version of roboschool is 1.0.46. In line 128 of gym_forward_walker it does call self.spec.timestep_limit. Looking at current gym_forward_walker in source file, the line calls self.spec.max_episode_steps instead. I am using python 3.6.7, pip 19.1.1 and Ubuntu 18.04. |
I managed to get it working today by using the exact same requirements.txt file from my osx environment.
I imagine it has to do with the gym version, which I had installed from source in this environment. Hope this helps |
I personally didn't install gym from source, just using pip. And it's on the latest version 0.12.5. I don't really understand what you did, but if it worked, then great! I'll hope someone will have a better fix than this?! |
Yeah sorry this isn't very clear! if you copy those requirements into a requirements.txt file and install them into your environment
and then run something like
does it work? |
gym==0.12.5 was released 6 days ago. It broke since then. Roboschool==1.0.46 works fine with gym==0.12.1. Thus the following solves the issue:
|
I ran into the same issue as well on Windows OS. But downgrading to gym==0.12.1 worked. |
For future reference, to make it compatible with a newer version of the gym, you can also change the line to: MAX_STEPS = env._max_episode_steps You however then also have to change the taxi environment version to 3:
|
change timestep_limit to max_episode_steps |
I have just tried to run Roboschool. It installs fine but I am unable to carry out the env.step(action) function, receiving the following error
I am running on Ubuntu 18.04 with python 3.6.8
I have tried installing from pip and from source with no luck.
Any help would be appreciated\
Note: this error only happens for the locomotion environments. The pong and pendulum environments work fine
The text was updated successfully, but these errors were encountered: