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
I am a robotics engineer at Triton Systems and I use MuJoCo for simulation.
My setup
MuJoCo 3.2.7 on PyPi (Python), AMD64, Ubuntu 24.04
What's happening? What did you expect?
Running within a Bazel module:
INFO: Running command line: bazel-bin/mujoco_py
/home/david/.cache/bazel/_bazel_david/f695e6f26414630bc7daef67dcbe0426/execroot/_main/bazel-out/k8-fastbuild/bin/mujoco_py.runfiles/.mujoco_py.venv/lib/python3.12/site-packages/glfw/init.py:917: GLFWError: (65548) b'Wayland: The platform does not provide the window position'
warnings.warn(message, GLFWError)
Attempts to import GLFW directly haven't worked to eliminate this from popping up every time the viewer is opened.
Steps for reproduction
Run the code below.
Get the warning message.
Minimal model for reproduction
Shouldn't need this if you import the robot_descriptions package as follows
Hi @david-dorf . I think I ran into a similar issue the other day when using wayland. Could you check which version of glfw are you using?
pip freeze | grep glfw
If you're using version 1.12.0 then you'll just have to update to the latest version (current is 2.8.0). I get the same warning, but the visualizer opens normally. I got this issue bc it seems that the package from dm_control uses an old version of glfw in their requirements.txt file.
It's version 2.8.0, but it's just that the warning is a little annoying - not really a major issue stopping me from doing anything. If this is already expected then I can close this issue.
I have glfw version 2.7.0 and I get a GLFWError: (65544) b'Wayland: Window position retrieval not supported' warnings.warn(message, GLFWError) and it actually makes it so that none of the buttons on the MJ visualiser work.
Adding an environment variable to force GLFW to use x11 instead works in fixing both the warning and the issues with the buttons: export PYGLFW_LIBRARY_VARIANT=x11. If it's just an annoying warning and you have XWayland, maybe just use that.
Intro
Hi!
I am a robotics engineer at Triton Systems and I use MuJoCo for simulation.
My setup
MuJoCo 3.2.7 on PyPi (Python), AMD64, Ubuntu 24.04
What's happening? What did you expect?
Running within a Bazel module:
INFO: Running command line: bazel-bin/mujoco_py
/home/david/.cache/bazel/_bazel_david/f695e6f26414630bc7daef67dcbe0426/execroot/_main/bazel-out/k8-fastbuild/bin/mujoco_py.runfiles/.mujoco_py.venv/lib/python3.12/site-packages/glfw/init.py:917: GLFWError: (65548) b'Wayland: The platform does not provide the window position'
warnings.warn(message, GLFWError)
Attempts to import GLFW directly haven't worked to eliminate this from popping up every time the viewer is opened.
Steps for reproduction
Minimal model for reproduction
Shouldn't need this if you import the robot_descriptions package as follows
Code required for reproduction
Confirmations
The text was updated successfully, but these errors were encountered: