I’m using Panda3D to render a large number of short videos. When I try to run my script on a remote Linux machine (CentOS release 7.6.1810), I get the following x11 display error.
glxGraphicsPipe
(all display modules loaded.)
:display:x11display(error): Could not open display ":0.0".
:ShowBase(warning): Unable to open 'onscreen' window.
Traceback (most recent call last):
File "win/render/samples/ball-in-maze/dup.py", line 358, in <module>
demo = BallInMazeDemo()
File "win/render/samples/ball-in-maze/dup.py", line 53, in __init__
ShowBase.__init__(self)
File "/home/users/eyuboglu/miniconda3/envs/win/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 339, in __init__
self.openDefaultWindow(startDirect = False, props=props)
File "/home/users/eyuboglu/miniconda3/envs/win/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 1021, in openDefaultWindow
self.openMainWindow(*args, **kw)
File "/home/users/eyuboglu/miniconda3/envs/win/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 1056, in openMainWindow
self.openWindow(*args, **kw)
File "/home/users/eyuboglu/miniconda3/envs/win/lib/python3.8/site-packages/direct/showbase/ShowBase.py", line 801, in openWindow
raise Exception('Could not open window.')
Exception: Could not open window.
I have added the two following lines to the default Config.prc
:
window-type offscreen
audio-library-name null
and the Exception is raised after calling ShowBase.__init__(self)
.
Would appreciate any guidance on how to use Panda3D on a remote machine over SSH.
Thanks!