Building error using ppackage.py and pdef files.

I’m using the build-bot version of Panda (OSX) and am trying to build standalone versions of my project. Since binaries of packp3d and ppackage aren’t included on latest builds, I’m running the packager Python files directly and this has a problem loading the required modules.

$: python /Developer/Panda3D/lib/direct/p3d/packp3d.py -o test.p3d -d .
Unknown package panda3d, version "None"

Similarly, when I try ppackage.py:

$: python /Developer/Panda3D/lib/direct/p3d/ppackage.py -i . isis.pdef

:Packager: Reading isis.pdef
Unknown package panda3d, version "None" on line 10 of isis.pdef

The file, isis.pdef contains:

from panda3d.core import loadPrcFile
from panda3d.core import Filename

class isis(p3d):
    require("panda3d")
    require("morepy")
    require("ode")

    file("main.py")
    mainModule('main', filename=Filename('main.py'))

Any suggestions?

Thanks,
Dustin

You really shouldn’t run those .py files directly. You can grab the .p3d files from runtime.panda3d.org/ .

Yes, thanks. I see what I needed to do now.

wget http://runtime.panda3d.org/ppackage.p3d
panda3d ppackage.p3d -i . isis.pdef