Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XOpenDisplay: cannot open display #40

Open
qiuzidian opened this issue Aug 21, 2024 · 1 comment
Open

XOpenDisplay: cannot open display #40

qiuzidian opened this issue Aug 21, 2024 · 1 comment

Comments

@qiuzidian
Copy link

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

@silvester666
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants