DiffuScene icon indicating copy to clipboard operation
DiffuScene copied to clipboard

XOpenDisplay: cannot open display

Open qiuzidian opened this issue 1 year ago • 2 comments

Hi, when I run preprocess_data. py on a remote server, the error message is as follows. Does this mean I need a graphical interface?

Traceback (most recent call last): File "preprocess_data.py", line 355, in main(sys.argv[1:]) File "preprocess_data.py", line 147, in main scene = scene_from_args(args) File "/home/zitian/work/DiffuScene/scripts/utils.py", line 244, in scene_from_args scene = Scene(size=args.window_size, background=args.background) File "/home/zitian/anaconda3/envs/diffuscene/lib/python3.8/site-packages/simple_3dviz/scenes.py", line 110, in init super(Scene, self).init(size, background, ctx) File "/home/zitian/anaconda3/envs/diffuscene/lib/python3.8/site-packages/simple_3dviz/scenes.py", line 22, in init self._ctx = moderngl.create_standalone_context() File "/home/zitian/anaconda3/envs/diffuscene/lib/python3.8/site-packages/moderngl/init.py", line 2014, in create_standalone_context return create_context(standalone=True, **kwargs) File "/home/zitian/anaconda3/envs/diffuscene/lib/python3.8/site-packages/moderngl/init.py", line 1964, in create_context ctx.mglo, ctx.version_code = mgl.create_context(glversion=require, mode=mode, **settings) File "/home/zitian/anaconda3/envs/diffuscene/lib/python3.8/site-packages/glcontext/init.py", line 90, in create return x11.create_context(**kwargs) Exception: (standalone) XOpenDisplay: cannot open display

qiuzidian avatar Aug 21 '24 15:08 qiuzidian

hi, I have the same error when I run generate_diffusion.py. Do you have a solution to this error?

silvester666 avatar Jan 08 '25 14:01 silvester666

I also have the same error when I run generate_diffusion.py. Do you have a solution to this error?

luzhiyuan25 avatar Nov 21 '25 12:11 luzhiyuan25