Panda stopped working on MacOSX 10.4.11

Hey there,

I had Panda working fine, then I tried building the pandatools so I could import Maya models. I’m still not able to get that built, but that’s another topic that’s on hold for the moment (discourse.panda3d.org/viewtopic.php?t=3612)

However, now I can’t even get Panda to work on its own. Just having python run on the simplest of the example code:

import direct.directbase.DirectStart
run()

I get the following error:

DirectStart: Starting the game.
Traceback (most recent call last):
  File "01_blankscreen.py", line 1, in ?
    import direct.directbase.DirectStart
  File "/usr/local/panda/lib/direct/directbase/DirectStart.py", line 3, in ?
    from direct.showbase import ShowBase
  File "/usr/local/panda/lib/direct/showbase/ShowBase.py", line 10, in ?
    from pandac.PandaModules import *
  File "/usr/local/panda/lib/pandac/PandaModules.py", line 1, in ?
    from libpandaexpressModules import *
  File "/usr/local/panda/lib/pandac/libpandaexpressModules.py", line 1, in ?
    from extension_native_helpers import *
  File "/usr/local/panda/lib/pandac/extension_native_helpers.py", line 37, in ?
    from libpandaexpress import *
ImportError: Failure linking new module: /usr/local/panda/lib/libpandaexpress.so: Library not loaded: libpandaexpress.dylib
  Referenced from: /usr/local/panda/lib/libpandaexpress.so
  Reason: image not found

The libpandaexpress.dylib file is in /usr/local/panda/lib/
However, there is also a copy in ~/src/panda3d/panda/metalibs/pandaexpress/Opt3-OSX
also in that folder are:
libpandaexpress.dylib
libpandaexpress.so
libpandaexpress_module.cxx
libpandaexpress_module.o
pandaexpress_pandaexpress.o

for env i get (irrelevant things not included):

PPREMAKE_CONFIG=/Users/bridget/src/panda3d/Config.pp
MAYA_SCRIPT_PATH=/Applications/Autodesk/maya8.5/devkit/plug-ins
LOCAL_PPREMAKE_CONFIG=/Users/bridget/src/panda3d/Config.pp
MAYA_PLUG_IN_PATH=/Applications/Autodesk/maya8.5/devkit/plug-ins
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/usr/local/panda/bin:/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
PWD=/Users/bridget/src/panda3d/panda/metalibs/pandaexpress/Opt3-OSX
DYLD_FRAMEWORK_PATH=/Applications/Autodesk/maya8.5/Maya.app/Contents/Frameworks
MAYA_LOCATION=/Applications/Autodesk/maya8.5/Maya.app/Contents
SHLVL=1
DYLD_LIBRARY_PATH=/Applications/Autodesk/maya8.5/Maya.app/Contents/MacOS
PYTHONPATH=/usr/local/panda/lib:/usr/local/panda/lib/direct
XBMLANGPATH=/Applications/Autodesk/maya8.5/devkit/plug-ins/
_=/usr/bin/env

I have Python 2.4.3 installed.

Can anybody make any sense of this? Thank you!!

I think you need to make sure that /usr/local/panda/lib appears on your DYLD_LIBRARY_PATH.

David