Skip to content

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

@divya-rakheja

Description

@divya-rakheja

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions