-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
[Bug Report] TypeError: 'NoneType' object is not callable in /mujoco_rendering.py in free
#438
Closed
1 task done
Labels
bug
Something isn't working
Comments
Thanks @sonelu, could you make a PR to add your change |
sonelu
added a commit
to sonelu/Gymnasium
that referenced
this issue
Apr 7, 2023
I can not replicate @sonelu show me the steps to replicate |
@Kallinteris-Andreas Are you using windows wsl? |
@pseudo-rnd-thoughts no i run arch |
Code: import gymnasium as gym
env = gym.make('Humanoid-v4', render_mode='human')
env.reset()
for _ in range(100):
action = env.action_space.sample()
obs, rew, term, trunc, info = env.step(action)
env.render()
if term or trunc:
env.reset()
env.close() Dump
|
Thanks, I can replicate now, bug is only present with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When closing an environment that used
env.render()
the following dump is issued:https://github.com/Farama-Foundation/Gymnasium/blob/3923e35a18b5e1c1936ce5878c10f49a3cc94ed3/gymnasium/envs/mujoco/mujoco_rendering.py#L326-331
Changing the code to this seems to remove the error:
Code example
No response
System info
Describe how Gymnasium was installed: pip
Version of gymnasium: 0.28.1
What OS/version of Linux you're using. Note that while we will accept PRs to improve Window's support, we do not officially support it.: 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux (Ubuntu 22.04 under WSL2)
Python version: 3.7.12
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: