Exception: No graphics pipe is available! in Python compiled

Hi!
I installed panda3d in Centos 7, with python.
All works fine without compile the code, but when I use pyinstaller to compile the code I get the error:

1 explicit pages:
/home/fcruz/Documentos/00-Projects/07-atoms30/trunk/TOOLS/Panda3D/config/conf.prc

2 implicit pages:
/usr/lib64/python3.6/site-packages/panda3d/etc/Config.prc
/usr/lib64/python3.6/site-packages/panda3d/etc/Confauto.prc

:prc(warning): value queried before default value set for load-display.
ConfigVariableString-> pandagl
:prc(warning): changing default value for ConfigVariable load-display from ‘’ to ‘*’.
:display(warning): Unable to load libpandagl.so: No error.
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File “01-window.py”, line 33, in
game = MyGame()
File “01-window.py”, line 17, in init
super().init()
File “site-packages/direct/showbase/ShowBase.py”, line 338, in init
File “site-packages/direct/showbase/ShowBase.py”, line 1020, in openDefaultWindow
File “site-packages/direct/showbase/ShowBase.py”, line 1055, in openMainWindow
File “site-packages/direct/showbase/ShowBase.py”, line 765, in openWindow
File “site-packages/direct/showbase/ShowBase.py”, line 751, in
File “site-packages/direct/showbase/ShowBase.py”, line 817, in _doOpenWindow
File “site-packages/direct/showbase/ShowBase.py”, line 647, in makeDefaultPipe
File “site-packages/direct/directnotify/Notifier.py”, line 130, in error
Exception: No graphics pipe is available!
Your Config.prc file must name at least one valid panda display
library via load-display or aux-display.

Can you help me?

Best regards,
Fernando

Hi, welcome to the forums!

How did you acquire Panda3D exactly? Did you compile it from source code yourself?

Hi! Thank for your quick attention.

I used python installed

What do you mean by that?

I use
pip install panda3d==1.10.7

Sorry, I did not read your original post properly. I did not realise you were using pyinstaller.

You need to include the etc/Config.prc and etc/Confauto.prc files in your compiled code directory, as well as the libpandagl.so file and any other plugins.

Is there a reason you are not using the distribution tool that ships with Panda3D? It does everything for you automatically.

Thanks for the help.

I would like to yse the distribution tool, but there aren’t for centos 7.
And I can not install it

The distribution process discussed here is supported on CentOS 7. If something isn’t working, we can walk you through fixing it (assuming you don’t decide to just stick with PyInstaller) .

thank you.

I just compiled with cx-freeze and it Works.

Thank you for your help :slight_smile: