Problems with sample programs

Hi guys,

I just compiled and installed 1.7.1.
Then I tried to start the sample programs to check whether it is working. But every sample gives me this error:

[erik@erik-laptop Asteroids]$ python Tut-Asteroids.py 
DirectStart: Starting the game.
:display(warning): Unable to load: /usr/lib/panda3d/libpandagl.so: undefined symbol: _ZN14GraphicsOutput10ready_flipEv
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
  File "Tut-Asteroids.py", line 13, in <module>
    import direct.directbase.DirectStart
  File "/usr/local/share/panda3d/direct/directbase/DirectStart.py", line 4, in <module>
    base = ShowBase.ShowBase()
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 243, in __init__
    self.openDefaultWindow(startDirect = False, props=props)
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 731, in openDefaultWindow
    self.openMainWindow(*args, **kw)
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 816, in openMainWindow
    self.openWindow(*args, **kw)
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 561, in openWindow
    self.makeDefaultPipe()
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 494, in makeDefaultPipe
    "No graphics pipe is available!\n"
  File "/usr/local/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.
[erik@erik-laptop Asteroids]$ python Tut-Asteroids.py 
DirectStart: Starting the game.
:display(warning): Unable to load: /usr/lib/panda3d/libpandagl.so: undefined symbol: _ZN14GraphicsOutput10ready_flipEv
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
  File "Tut-Asteroids.py", line 13, in <module>
    import direct.directbase.DirectStart
  File "/usr/local/share/panda3d/direct/directbase/DirectStart.py", line 4, in <module>
    base = ShowBase.ShowBase()
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 243, in __init__
    self.openDefaultWindow(startDirect = False, props=props)
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 731, in openDefaultWindow
    self.openMainWindow(*args, **kw)
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 816, in openMainWindow
    self.openWindow(*args, **kw)
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 561, in openWindow
    self.makeDefaultPipe()
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 494, in makeDefaultPipe
    "No graphics pipe is available!\n"
  File "/usr/local/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.

My /etc/Config.prc (commented lines and empty lines removed):

load-display pandagl
win-origin 50 50
win-size 800 600
fullscreen #f
framebuffer-hardware #t
framebuffer-software #f
depth-bits 1
color-bits 1
alpha-bits 0
stencil-bits 0
multisamples 0
notify-level warning
default-directnotify-level warning
model-path    $MAIN_DIR
model-path    /usr/local/share/panda3d
model-path    /usr/local/share/panda3d/models
want-directtools  #f
want-tk           #f
want-pstats            #f
show-frame-rate-meter  #f
audio-library-name p3openal_audio
use-movietexture #t
hardware-animated-vertices #f
model-cache-dir $HOME/.panda3d/cache
model-cache-textures #f
basic-shaders-only #t

Looking forward for somebody who can tell me what is going on.

Ablu

Do you have any other versions of Panda already installed? It looks to me like you’re inadvertently linking with the wrong version. Try uninstalling any other versions.

David

Thanks for reply.

You were right. There were still parts of another panda3d installation on the disk.
Now it should be all right. But i get this error:

DirectStart: Starting the game.
Traceback (most recent call last):
  File "Tut-Asteroids.py", line 13, in <module>
    import direct.directbase.DirectStart
  File "/usr/local/share/panda3d/direct/directbase/DirectStart.py", line 3, in <module>
    from direct.showbase import ShowBase
  File "/usr/local/share/panda3d/direct/showbase/ShowBase.py", line 10, in <module>
    from pandac.PandaModules import *
  File "/usr/local/share/panda3d/pandac/PandaModules.py", line 2, in <module>
    from libpandaexpressModules import *
  File "/usr/local/share/panda3d/pandac/libpandaexpressModules.py", line 1, in <module>
    from extension_native_helpers import *
  File "/usr/local/share/panda3d/pandac/extension_native_helpers.py", line 81, in <module>
    Dtool_PreloadDLL("libpandaexpress")
  File "/usr/local/share/panda3d/pandac/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
    imp.load_dynamic(module, pathname)
ImportError: libp3dtool.so.0.0: cannot open shared object file: No such file or directory

Any ideas?

Ablu

Well, that means that libp3dtool.so.0.0 (or perhaps some .so file that libp3dtool depends on) is not on your LD_LIBRARY_PATH, or your system ldconfig path.

Which points to a problem with installation. What steps did you follow to compile and install Panda? The best way is usually to run makepanda with the --installer option, then run the generated installer.

David

Hi,

i ran makepanda.py --everything and installpanda.py frome the makepanda directory according to the makefile of pande3d-1.6.2

Ablu

The 0.0 part sounds like a serious problem with the compilation. Perhaps header files have conflicted.

So i did not make a mistake during installation?
It seems to be more a source related problem as far i understood, right?

Thanks for clarify

Ablu

(please excuse my bad english)