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

pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None" #105

Open
divya-rakheja opened this issue Jul 9, 2024 · 1 comment

Comments

@divya-rakheja
Copy link

Has anyone come across this issue and resolved it while running bash visualise.sh

Traceback (most recent call last):
File "/home/cvlab/Desktop/Divya_Excecutive/TalkSHOW/scripts/diversity.py", line 352, in
main()
File "/home/cvlab/Desktop/Divya_Excecutive/TalkSHOW/scripts/diversity.py", line 347, in main
infer(config.Data.data_root, generator, generator_face, generator2, args.exp_name, infer_loader, infer_set, device,
File "/home/cvlab/Desktop/Divya_Excecutive/TalkSHOW/scripts/diversity.py", line 294, in infer
rendertool._render_sequences(cur_wav_file, vertices_list[1:], stand=stand, face=face)
File "/home/cvlab/Desktop/Divya_Excecutive/TalkSHOW/visualise/rendering.py", line 129, in _render_sequences
self._render_sequences_helper(video_fname, cur_wav_file, v_list, stand, face, whole_body, transcript)
File "/home/cvlab/Desktop/Divya_Excecutive/TalkSHOW/visualise/rendering.py", line 179, in _render_sequences_helper
r = pyrender.OffscreenRenderer(viewport_width=800, viewport_height=viewport_height)
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyrender/offscreen.py", line 31, in init
self._create()
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyrender/offscreen.py", line 149, in _create
self._platform.init_context()
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyrender/platforms/pyglet_platform.py", line 50, in init_context
self._window = pyglet.window.Window(config=conf, visible=False,
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyglet/window/xlib/init.py", line 170, in init
super(XlibWindow, self).init(*args, **kwargs)
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyglet/window/init.py", line 591, in init
display = pyglet.canvas.get_display()
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyglet/canvas/init.py", line 94, in get_display
return Display()
File "/home/cvlab/miniconda3/envs/talkshow/lib/python3.10/site-packages/pyglet/canvas/xlib.py", line 123, in init
raise NoSuchDisplayException('Cannot connect to "%s"' % name)
pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None"

@chuxiang93
Copy link

same question.

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