You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importmetaworldimportrandomprint(metaworld.ML1.ENV_NAMES) # Check out the available environmentsenv_name='basketball-v2'# Pick an environment namerender_mode='human'# set a render modeml1=metaworld.ML1(env_name) # Construct the benchmark, sampling tasksenv=ml1.train_classes[env_name](render_mode=render_mode)
task=random.choice(ml1.train_tasks)
env.set_task(task) # Set taskobs=env.reset() # Reset environmenta=env.action_space.sample() # Sample an actionobs, reward, terminate, truncate, info=env.step(a)
I run into this error,
Exception ignored in: <function WindowViewer.__del_ at 0x10724c310>
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniconda/base/envs/meta/lib/python3.10/site-pack ages/gymnasium/envs/mujoco/mujoco_rendering.py", line 359, in _del_
File "/opt/homebrew/Caskroom/miniconda/base/envs/meta/lib/python3.10/site-pack
ages/gymnasium/envs/mujoco/mujoco_rendering.py", line 352, in free
File "/opt/homebrew/Caskroom/miniconda/base/envs/meta/lib/python3.10/site-pack
ages/glfw/_
-
init
_py", line 2366, in get_current_context
AttributeError: 'NoneType' object has no attribute 'glfwGetCurrentContext'
A similar error was observed on Ubuntu 20.04, with the same setup instruction and code.
Kindly help,
Thanks.
The text was updated successfully, but these errors were encountered:
varungupta31
changed the title
Issues with Rendering - no attribute 'glfwGetCurrentContext' [MacOS]
Issues with Rendering - no attribute 'glfwGetCurrentContext'
Aug 5, 2024
I am new to this benchmark and tool.
I installed as per the documentation
And tried the started code,
I run into this error,
A similar error was observed on Ubuntu 20.04, with the same setup instruction and code.
Kindly help,
Thanks.
The text was updated successfully, but these errors were encountered: