undefined symbol: panda_version_1_2_3

I’ve compiled Panda successfully (after disabling fmod as I don’t have fmodex installed and I don’t feel comfortable enough modifying makepanda to pick up the new version).
Running any Panda sample gives an error, however:

  File "/usr/share/panda3d-cvs/pandac/libpandaexpressModules.py", line 1, in ?
    from libpandaexpress import *
ImportError: /usr/lib/python2.4/lib-dynload/libpandaexpress.so: undefined symbol: panda_version_1_2_3

The problem is that it’s loading the previously installed libpandaexpress.so, not picking up the new one. I tried setting LD_CONFIG_PATH to point to panda3d-cvs/lib and then running the sample again, but no luck.
How do I tell Python to load the new one?

I believe the variable you need to set is called LD_LIBRARY_PATH.

David

Same problem.

cerulean@linux:/u/s/p/s/Feature-Tutorials--Tasks> LD_LIBRARY_PATH=/usr/share/panda3d-cvs/lib python Tut-Asteroids.py

DirectStart: Starting the game.
Traceback (most recent call last):
...
    from libpandaexpress import *
ImportError: /usr/lib/python2.4/lib-dynload/libpandaexpress.so: undefined symbol: panda_version_1_2_3

Edit
Seemed that if I changed the name of the old libpandaexpress.so then the program errored out complaining it couldn’t find any libpandaexpress.so. So I just added panda3d-cvs/lib to PYTHONPATH and things are working good :slight_smile: