Perhaps this isn’t a proper ‘installation’ question, but it does involve setting up and using Panda3D. I apologize in advance if it is misplaced.
Anyway, I’ve apparently installed Panda3D successfully; I’m able to access it via the command line and to run most of the various demos. However, I have not been able to get Eclipse (using PyDev) to build anything using it. I’ve set up my PYTHONPATH and such so that Eclipse can find the package but it fails to run. For example, the first tutorial will run correctly from outside Eclipse:
import direct.directbase.DirectStart run()
However, Eclipse fails during import:
DirectStart: Starting the game. Traceback (most recent call last): File "/Users/stokes/Documents/Eclipse/pandatest/src/pandatest.py", line 1, in <module> import direct.directbase.DirectStart File "Panda3D-tpl-rw/Panda3D/1.6.2/lib/direct/directbase/DirectStart.py", line 3, in <module> File "Panda3D-tpl-rw/Panda3D/1.6.2/lib/direct/showbase/ShowBase.py", line 10, in <module> File "/Applications/Panda3D/1.6.2/lib/pandac/PandaModules.py", line 1, in <module> from libpandaexpressModules import * File "/Applications/Panda3D/1.6.2/lib/pandac/libpandaexpressModules.py", line 1, in <module> from extension_native_helpers import * File "/Applications/Panda3D/1.6.2/lib/pandac/extension_native_helpers.py", line 75, in <module> Dtool_PreloadDLL("libpandaexpress") File "/Applications/Panda3D/1.6.2/lib/pandac/extension_native_helpers.py", line 73, in Dtool_PreloadDLL imp.load_dynamic(module, pathname) ImportError: dlopen(/Applications/Panda3D/1.6.2/lib/libpandaexpress.dylib, 2): Library not loaded: libp3dtool.dylib Referenced from: /Applications/Panda3D/1.6.2/lib/libpandaexpress.dylib Reason: image not found
Obviously, it’s not finding some resource it needs, but the PYTHONPATH in each environment appears to be identical, so this is somewhat mysterious. I find it particularly strange that it finds some of the required Panda3D files but not all.
Have I missed some obvious step in setting this up?