I’m sorry to ask again but the program does not work as well as I thought.
The executable that I created works well on the computer on which I have developed the application, the problem comes when I try to run it on another computer.
The problem is that it correctly reads the config.prc file (I had to change the environment variable in my program when it was executed using:
os.environ ["PANDA_PRC_DIR"] = os.getcwd ()
os.environ ["PRC_DIR"] = os.getcwd ()
os.environ ["PANDA_PRC_PATH"] = os.getcwd ()
os.environ ["PRC_PATH"] = os.getcwd ())
but when you try to find the graphic libraries to boot the application does not include them, I have the files libpandadx9.dll, libpandagl.dll and libp3tinydisplay.dll in the same directory in the that my Main.exe is located but it seems that it does not find anything to load.
my Config.prc file is like this:
load-display pandagl
aux-display pandadx9
aux-display pandagles
aux-display p3tinydisplay
and the output when I execute it is the following:
C: \ Users \ DIEGO \ Desktop \ dist \ main> main.exe
Warning: pandac.PandaModules is deprecated, import from panda3d.core instead
: audio (error): load_dso (libp3openal_audio.so) failed, will use NullAudioManage
r
: audio (error): Path not found
: display (warning): Unable to load: Module not found
: display (warning): Unable to load: Module not found
: display (warning): Unable to load: Path not found
: display (warning): Unable to load: Module not found
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "main.py", line 300, in <module>
File "main.py", line 33, in __init__
File "direct \ showbase \ ShowBase.py", line 679, in openWindow
File "direct \ showbase \ ShowBase.py", line 665, in <lambda>
File "direct \ showbase \ ShowBase.py", line 731, in _doOpenWindow
File "direct \ showbase \ ShowBase.py", line 570, in makeDefaultPipe
File "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.
[2344] Failed to execute script main
C: \ Users \ DIEGO \ Desktop \ dist \ main>
Config.prc to what directory is going to find these graphic libraries?
Should I go look for them at the same place where Config.prc is not?
On the other computer if I delete these * .dll files if it complains and does not execute it but when I put them back in the directory where I have the Config.prc it runs without problems, it seems that the problem is moving the application to another computer where I do not have Panda3D installed.
I have to say that the executable I did with pyinstaller