Unable to open the interface
I am trying to open the interface with both the dev or the default pip installation, but I get the following error:
$ run-pooltool
Known pipe types:
glxGraphicsPipe
(1 aux display modules not yet loaded.)
:display:glxdisplay(error): Could not find a usable pixel format.
:display:glxdisplay(error): No GLX context: cannot open window.
:display:gsg:glgsg(warning): Unable to query GL_VENDOR
:display:gsg:glgsg(warning): Unable to query GL_RENDERER
:display:gsg:glgsg(warning): Unable to query GL_VERSION
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:gsg:glgsg(warning): Unable to query GL_VENDOR
:display:gsg:glgsg(warning): Unable to query GL_RENDERER
:display:gsg:glgsg(warning): Unable to query GL_VERSION
:display:gsg:glgsg(error): Unable to detect OpenGL version
:display:egldisplay(error): Failed to find or initialize a suitable EGL display connection.
:ShowBase(warning): Unable to open 'onscreen' window.
Traceback (most recent call last):
File "/home/saipavanchitta/.conda/envs/pooltool-dev/bin/run-pooltool", line 8, in <module>
sys.exit(run())
^^^^^
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/pooltool/main.py", line 14, in run
play = Game(config)
^^^^^^^^^^^^
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/pooltool/ani/animate.py", line 458, in __init__
Interface.__init__(self, config=config)
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/pooltool/ani/animate.py", line 125, in __init__
super().__init__(self, windowType=self.showbase_config.window_type)
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/direct/showbase/ShowBase.py", line 422, in __init__
self.openDefaultWindow(startDirect = False, props=props)
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/direct/showbase/ShowBase.py", line 1119, in openDefaultWindow
self.openMainWindow(*args, **kw)
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/direct/showbase/ShowBase.py", line 1154, in openMainWindow
self.openWindow(*args, **kw)
File "/home/saipavanchitta/.conda/envs/pooltool-dev/lib/python3.12/site-packages/direct/showbase/ShowBase.py", line 899, in openWindow
raise Exception('Could not open window.')
Exception: Could not open window.
I have seen this issue every time I tried to install this package. I was not aware of how to deal with this, as I am not aware of how any of the graphics glx works. Could you please help with this? Thank you!
Hey @saipavanc, sorry you're experiencing errors. This is a panda3d error you're encountering. I'm sure it's a solvable problem, but it's outside my expertise. Fortunately, they have a very active discourse, so I think you can probably get the help you need there. They'll probably ask about your hardware/software specs.
If you make a post there (you can use your github account), please reference it in this issue and I'll monitor it. Maybe I can generalize the solution within pooltool to make it easier for others in the future.
@saipavanc I see you solved the issue. How OpenGL works is quite a bit past my knowledge limit, so I really appreciate you detailing your steps in Could not open window panda3d/panda3d#1737