I found a solution, I had to rewrite the output of the .py generated by the script delivered by Pmw. Now everthing Pmw related seems to be fine, but when I compile the program and try to start it, the output of the console says:
Warning: unable to auto-locate config files in directory named by "<auto>etc".
:audio: NullAudioManager
:audio: NullAudioManager
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "earth.py", line 409, in <module>
app = Application(windowType = 'none')
File "earth.py", line 210, in __init__
self.makeDefaultPipe()
File "lib\site-packages\direct\showbase\ShowBase.py", line 584, in makeDefaultPipe
File "lib\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.
[36476] Failed to execute script earth
after adding the /etc/ folder of Panda3d with COnfig.prc I still get:
:audio(error): load_dso(libp3openal_audio.so) failed, will use NullAudioManager
:audio(error): Path not found
:display(warning): Unable to load: Path not found
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "earth.py", line 409, in <module>
app = Application(windowType = 'none')
File "earth.py", line 210, in __init__
self.makeDefaultPipe()
File "lib\site-packages\direct\showbase\ShowBase.py", line 584, in makeDefaultPipe
File "lib\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.
[36368] Failed to execute script earth
edit:
PyInstaller seems to miss out on some important DLL’s. I manually copied missing DLL’s from the Library directory and it works now.
edit edit:
the problem seems to occur totally random, now even with copying the DLL’s its throwing the same error again
edit edit edit:
nvm, was probably some problem with my venv, I deleted it and build a new venv