[SOLVED] packp3d on OSX 10.9 with panda3d 1.9 issues

Hi everyone, I’m somewhat new to panda3d and packp3d especially, and I’m trying to create a working .p3d app on OSX 10.9.

I’ve run into several problems:

  1. When I download packp3d.p3d and try to run it, I get the “self signed certificate” error described in this thread: panda3d.org/forums/viewtopi … 7&start=60, which I fixed using the -u and -M options to bypass using SSL.
  2. When I create an app and attempt to run it, I get problems importing libpandabullet:
zachs-mbp:dev zbernal$ panda3d packp3d.p3d -o fiapp.p3d -d ./fi:downloader: [0x134e800] begin GET [ https://runtime-dev.panda3d.org/images/images.xml ]
:AppRunner: Total Panda3D disk space used: 135 MB
:AppRunner: Configured max usage is: 2048 MB
There are some missing modules: ['Cython.Distutils', '_speedups', 'contextlib', 'decimal', 'distutils.core', 'distutils.extension', 'ficore.blocks', 'ficore.entity', 'ficore.inventory', 'ficore.island', 'ficore.player', 'ficore.world', 'importlib', 'json', 'panda3d.bullet', 'panda3d.core', 'simplejson._speedups', 'test.support', 'test.test_support']
:egg2pg: Reading /Users/zbernal/dev/fi/resource/anticube.egg
:gobj: Loading texture /Users/zbernal/dev/fi/resource/tex/anticube-tex.png
:egg2pg: Flattened 1 nodes.
:egg2pg: Reading /Users/zbernal/dev/fi/resource/goldcube.egg
:gobj: Loading texture /Users/zbernal/dev/fi/resource/tex/goldcube-tex.png
:egg2pg: Flattened 1 nodes.
Generating fiapp.p3d
zachs-mbp:dev zbernal$ panda3d fiapp.p3d
:downloader: [0x11e5a00] begin GET [ https://runtime-dev.panda3d.org/images/images.xml ]
:AppRunner: Total Panda3D disk space used: 135 MB
:AppRunner: Configured max usage is: 2048 MB
spawning fig PID:670
python version:2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 14:13:39)
[GCC 4.0.1 (Apple Inc. build 5493)]
basedir:/Users/zbernal/Library/Caches/Panda3D/start
sys.path:['/Users/zbernal/Library/Caches/Panda3D/start/lib', '/Users/zbernal/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS', '/Users/zbernal/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8', 'lib/python27.zip', 'lib/python2.7/', 'lib/python2.7/plat-darwin', 'lib/python2.7/plat-mac', 'lib/python2.7/plat-mac/lib-scriptpackages', 'lib/python2.7/lib-tk', 'lib/python2.7/lib-old', 'lib/python2.7/lib-dynload', '/Users/zbernal/Library/Caches/Panda3D/start']
Traceback (most recent call last):
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/showbase/Messenger.py", line 424, in __taskChainDispatch
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/showbase/Messenger.py", line 482, in __dispatch
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/p3d/AppRunner.py", line 748, in __startIfReady
  File "VFSImporter", line 153, in load_module
  File "/Users/zbernal/dev/fi/main.py", line 31, in <module>
    from panda3d.bullet import BulletDebugNode
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/lib/panda3d.py", line 158, in __getattr__
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/lib/panda3d.py", line 133, in libimport
ImportError: DLL loader cannot find libpandabullet.
:task(error): Exception occurred in PythonTask Messenger-default
Traceback (most recent call last):
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/p3d/AppRunner.py", line 638, in run
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/task/Task.py", line 502, in run
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/task/Task.py", line 460, in step
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/showbase/Messenger.py", line 424, in __taskChainDispatch
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/showbase/Messenger.py", line 482, in __dispatch
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/direct/p3d/AppRunner.py", line 748, in __startIfReady
  File "VFSImporter", line 153, in load_module
  File "/Users/zbernal/dev/fi/main.py", line 31, in <module>
    from panda3d.bullet import BulletDebugNode
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/lib/panda3d.py", line 158, in __getattr__
  File "/Users/buildbot/slave/release_rtdist_osx/build/panda3d/built_cmu/lib/panda3d.py", line 133, in libimport
ImportError: DLL loader cannot find libpandabullet.
Successfully joined thread: 0
Failure on startup.

I’m using the following versions:
Panda3D SDK: rdb.name/Panda3D-1.9.0.dmg
Panda3D runtime: buildbot.panda3d.org/downloads/d … .27-99.dmg
packp3d: runtime.panda3d.org/packp3d.p3d

Am I using a bunch of mismatched versions? Should I go get the latest dev build for everything? Will packp3d work with the latest dev build on OSX? Do I need to manually bundle libpandabullet?

You have to put “-r bullet” on the command-line to packp3d.

Thanks rdb! I should probably read the manual huh… I’ve learnt a lot of things the hard way the past couple of days.

For the viewers at home, I ended up using the following command to pack my app (I’m also using Cython for a few modules, hence “-e so”):

panda3d packp3d.p3d -r bullet -r morepy -o fiapp.p3d -d ./fi -e so