When I ran the examples

I downloaded isaacgym, and I ran the code “joint_monkey.py” on the Ubuntu Terminal.
But in my enviroment, I got an error message:

root@d967d924ca56:/opt/isaacgym/python/examples# python joint_monkey.py
Importing module 'gym_38' (/opt/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /opt/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
WARNING: Forcing CPU pipeline.
Not connected to PVD
+++ Using GPU PhysX
Physics Engine: PhysX
Physics Device: cuda:0
GPU Pipeline: disabled
[Error] [carb.windowing-glfw.plugin] GLFW initialization failed.
[Error] [carb.windowing-glfw.plugin] GLFW window creation failed!
[Error] [carb.gym.plugin] Failed to create Window in CreateGymViewerInternal
*** Failed to create viewer

I built my environment with docker in docker folder with bash build.sh and bash run.sh.

FYI

  • OS: Ubuntu 20.04
  • Nvidia Driver: 470.57.02
  • GPU: RTX 3070

Any idea to solve this?
Thank you.

Hi @ksterx ,

With the default docker build and run scripts shipped in Isaac Gym, we do not support running in docker with the viewer. You can try adding the --headless flag on examples that support headless mode to run without the viewer. Alternatively, you can give this docker run script a try (it’s not well tested yet) to see if you can get the viewer running in docker. run.sh (201 Bytes)