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

I’m not sure if this is the right check, but I’ve tried running some Panda3D programs from the Terminal using python3 file.py and they all work fine, which suggests that Panda3D is comfortably using Python 3.

Also, this link seems to suggest that the more recent versions of Panda3D use Python 3 quite well: Python 3 Support