Pyinstaller not working with Panda3D – 'direct' module not found

So I’ve come up with a way to sort out this new ImportError, which is to copy over EVERYTHING to do with Panda3D into the .py file directory. Now PyInstaller can find what it needs. But now I’m getting this 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.

I looked at this link: No graphics pipe available and they suggested there may be a line missing in the Config.prc file, namely the load-display line, but I’ve checked the file and that line is indeed there.

I have these lines in the config file:

load-display pandagl
aux-display pandadx9
aux-display pandagles
aux-display p3tinydisplay