|
|
|
Return to General Discussion
by TonyA » Wed Jun 13, 2012 12:30 am
Hello,
I am using windows xp, panda3D-1.7.2 and have been trying to learn how to package a very simple game into a redistributable exe using the packpanda utility.
I get the error:
packing...
File: "C:\Panda3D-1.7.2\LICENSE" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\Panda3D-1.7.2\direct\directscripts\packpanda.nsi" on line 90 -- aborting creation process
Even though the manual states that a license file is not necessary, I did include an empty .txt file called "license.txt". (The content of the file just has the word "license" inside, I thought I would use this as a dummy file).
Any idea what this error could mean?
Is packpanda the best way to create a redistributable exe package? (I read on the forum in an old thread that packpanda is deprecated? In the same thread it was recommended to use pdeploy instead?)
Any advice is sincerely appreciated, thanks in advance.
Tony
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by TonyA » Wed Jun 13, 2012 7:24 am
Thanks for the help and quick reply.
Tony
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by TonyA » Wed Jun 13, 2012 12:21 pm
I changed my "license.txt" file to "LICENSE" and did another run with packpanda and it all worked.
Then trying to use PDeploy as described in the manual (linked above) I get this error:
File "VFSImporter", line 153, in load_module
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\pandac\PandaModules.py", line 32, in <module>
File "VFSImporter", line 153, in load_module
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\pandac\libp3visionModules.py", line 2, in <module>
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\pandac\extension_native_helpers.py", line 79, in Dtool_PreloadDLL
ImportError: DLL load failed: The specified procedure could not be found.
Failure on startup.
I'm just starting out with Panda3D, learning.
Any advice is greatly appreciated.
Thanks again for any help.
Tony
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by TonyA » Wed Jun 13, 2012 2:05 pm
[* A Note to Beginners: This is the first step in a process which uses pdeploy to create a redistributable .exe package. First you use packp3d to create your .p3d file and then use pdeploy to create the .exe as described here: http://www.panda3d.org/manual/index.php/Using_packp3d and http://www.code4all.nl/dokuwiki/creatin ... d_binaries ]
Solved. I had been trying to run packp3d.exe file directly from the Panda3D-1.7.2\bin directory-- that doesn't work.
Instead I ran the packp3d from within the runtime folder residing at: C:\Program Files\Panda3D.
That directory (C:\Program Files\Panda3D) contains the Panda3D runtime, which is not included with the Panda3D SDK. The Panda3D Runtime is a separate download, and on windows is normally installed at: C:\Program Files\Panda3D.
In Command Prompt running packp3d looks like this:
C:\Program Files\Panda3D>packp3d -o NAME OF YOUR GAME.p3d -d C:\panda3d-1.7.2\FOLDER OF YOUR GAME
:AppRunner: Total Panda3D disk space used: 112 MB
:AppRunner: Configured max usage is: 2048 MB
:AppRunner: Freshening https://runtime.panda3d.org/panda3d/cmu ... import.xml
:downloader: GET [ https://runtime.panda3d.org/panda3d/cmu ... import.xml ]
There are some missing modules: ['pygame', 'pyo']
Generating myGameApp.p3d
(I'm just documenting it here in case other beginners need help on this.)
If there are any boo-boo's please let me know and I will edit. (Apparently I'm missing a couple of modules in my game folder...)
Thanks again.
Tony
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by TonyA » Wed Jun 13, 2012 3:41 pm
Now I just have to figure out how to add an external module to packp3d.
I would like to include the pyo digital signal processing module: http://code.google.com/p/pyo/
in my .p3d file.
PackP3D does locate Pygame using the -r command like this: packp3d -o mygameApp.p3d -d c:\panda3d-1.7.2\mygameAppFolder -r pygame -r pyo
But when I try to include pyo using the -r command I get: Unknown package pyo, version ""
Thanks again,
Tony
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by flavio » Thu Jun 14, 2012 9:04 am
Hi, it looks like the section III.F (specifically, the section III.F.4: "Building and hosting your own packages") of the manual is what you are looking for.
 - 
-

flavio
-
- Posts: 530
- Joined: Fri Apr 16, 2010 12:45 pm
- Location: Rome, Italy
-
by TonyA » Thu Jun 14, 2012 11:18 am
Thanks very much for the info, I will look into this.
TonyA
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by TonyA » Tue Jun 19, 2012 4:33 pm
I have been experimenting with packp3d, ppack, pdeploy and packpanda.
Packpanda is the only one I was able to get working. I wonder why it is deprecated?
Do people still use it regardless? Are there any unforeseen problems with using it?
Are there any other utilities (3rd party, etc.) for doing what packpanda does in a very simple way for beginners like me?
TonyA
Last edited by TonyA on Wed Jun 20, 2012 6:48 pm, edited 1 time in total.
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
by DangerOnTheRanger » Tue Jun 19, 2012 11:35 pm
I can think of two 3rd-party projects that do what packpanda does:
-

DangerOnTheRanger
-
- Posts: 240
- Joined: Fri Aug 27, 2010 4:59 pm
-
by tamberlo » Wed Jun 20, 2012 10:03 am
Hi all,
I'm having trouble using my dll (imported in Python using ctype).
I've used packp3d with :
packp3d -o pandagame.p3d -d deploy -r models -n dll -n pyd
The dll is packed but the .p3d crash immediately after lunch... no error are shown.
I've read similar posts but I can't understand how to make it works.
Tnx
Renato
-
tamberlo
-
- Posts: 3
- Joined: Mon Sep 12, 2011 8:40 am
by TonyA » Wed Jun 20, 2012 6:45 pm
DangerOnTheRanger wrote:I can think of two 3rd-party projects that do what packpanda does:
I tried both, PyInstaller works very well.
Thanks,
TonyA
-
TonyA
-
- Posts: 9
- Joined: Wed Jun 13, 2012 12:02 am
- Location: NY
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests
| | |