med-air / SurRoL

[IROS'21] SurRoL: An Open-source Reinforcement Learning Centered and dVRK Compatible Platform for Surgical Robot Learning
https://med-air.github.io/SurRoL/
MIT License
119 stars 19 forks source link

Cannot connect to X server #12

Closed KantaphatLeelakunwet closed 2 months ago

KantaphatLeelakunwet commented 3 months ago

I was trying to run herdemo_needlepick.sh to test the environment after installing, the error suggested that the file ../surrol/data/demo/data_NeedlePick-v0_random_100.npz does not exist. Therefore, I ran python data_generation.py --env NeedlePick-v0 in surrol/data to get training data, and it showed the following error.

pybullet build time: Nov 28 2023 23:50:19
startThreads creating 1 threads.
starting thread 0
started thread 0 
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!

    cannot connect to X server

\ Do you know what might be the problem? Thank you in advance!

KantaphatLeelakunwet commented 2 months ago

Since my cluster doesn't support visual, therefore I have changed render_mode='rgb_array', and everything works fine now.