I’m using ubuntu 12.04 and i compiled version 1.8 using makepanda. It was something like :
python makepanda/makepanda.py --everything --installer
And everything went fine and i got a built directory and a .deb file
I installed the deb file, and i tried to run this :
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
app = MyApp()
app.run()
and i get the following error :
:display(warning): Unable to load: No error.
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "test.py", line 8, in <module>
app = MyApp()
File "test.py", line 6, in __init__
ShowBase.__init__(self)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 244, in __init__
self.openDefaultWindow(startDirect = False, props=props)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 884, in openDefaultWindow
self.openMainWindow(*args, **kw)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 920, in openMainWindow
self.openWindow(*args, **kw)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 640, in openWindow
win = func()
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 626, in <lambda>
callbackWindowDict = callbackWindowDict)
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 691, in _doOpenWindow
self.makeDefaultPipe()
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 531, in makeDefaultPipe
"No graphics pipe is available!\n"
File "/usr/share/panda3d/direct/directnotify/Notifier.py", line 132, in error
raise exception(errorString)
StandardError: 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 did some research and i thought there was something wrong with Config.prc. My PANDA_PRC_DIR is set to /usr/local/etc. I checked the directory and there was nothing there!
And I did the
from pandac.PandaModules import ConfigPageManager
print ConfigPageManager.getGlobalPtr()
and it says 0 explicit packages and 0 implicit packages. Any ideas?