Skip to content Skip to sidebar Skip to footer

Your Config.prc File Must Name At Least One Valid Panda Display Library Via Load-display Or Aux-display. Error

I am using panda3d and have come across a bug in my code. I can't seem to find whats wrong. Here it is: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-package

Solution 1:

this should hopefully work:

3d.py:

from panda3d.core import loadPrcFile
from panda3d.core import ConfigPageManager
from direct.showbase.ShowBase import ShowBase

print(ConfigPageManager.getGlobalPtr())

# capitalization is important.
loadPrcFile('config.prc')

classMyGame(ShowBase):
    def__init__(self):
        super().__init__(self)
    
game = MyGame()

print(base)
game.run()

config.prc:

win-size1280 720

Solution 2:

Rename your Config.prc file to something else. Otherwise, you are overriding Panda3D's default configuration file, which is also called Config.prc.

Post a Comment for "Your Config.prc File Must Name At Least One Valid Panda Display Library Via Load-display Or Aux-display. Error"