I am using until now Panda3D SDK 1.8.1 and packp3d with python : it works well.
I have installed this evening Panda3D SDK 1.9.0, it seems that packp3d.exe is replaced by packp3d.py : yes or no ?
When I launch the following command to build a p3d package :
C:\Panda3D-1.9.0-x64\python\python.exe C:\Panda3D-1.9.0-x64\direct\p3d\packp3d.py -o C:\Users\philippe\Documents\game\editorV0-1.p3d -d C:\Users\philippe\Documents\game\editor\code -m main.py -n csv -n db -n sql -r sqlite -r morepy -r wx
I got this message :
This script must be run using a version of Panda3D that has been built
for distribution. Try using ppackage.p3d or packp3d.p3d instead.
If you are running this script for development purposes, you may also
set the Config variable panda-package-host-url to the URL you expect
to download these contents from (for instance, a file:// URL).
How to solve this issue ?
thanks in advance
Philippe
Note : the error message is raised by Packager.py :
line 2640 if not PandaSystem.getPackageVersionString() or not PandaSystem.getPackageHostUrl():
Just install the Panda3D Runtime, download packp3d1.9.p3d, and run “panda3d.exe packp3d1.9.p3d” in your command prompt. You may have to add the installation directory of the Panda3D Runtime to your system PATH.
:AppRunner: Total Panda3D disk space used: 576 MB
:AppRunner: Configured max usage is: 2048 MB
:Packager(warning): Unknown package wx, version ""
:Packager(warning): No such file: /c/Users/philippe/Documents/game/editor/code/p3d_info.xml
:Packager(warning): excluded 31 files not marked for inclusion: 'JPG', 'WinMerge', 'egg - Copie', 'gif', 'py~'
:Packager(warning): Cannot build package editorDevel due to missing dependencies: wx
*** Generating editorDevel.p3d with allow_python_dev enabled ***
:AppRunner: Normal exit with status 0.
In the game I display a basic tk GUI when i use the key “a” on the keyboard. When I use this key the p3d package crashes.
I got the following error :
Traceback (most recent call last):
File "C:\buildslave\rtdist-windows-i386\build\built\direct\p3d\AppRunner.py", line 635, in run
File "C:\buildslave\rtdist-windows-i386\build\built\direct\task\Task.py", line 510, in run
File "C:\buildslave\rtdist-windows-i386\build\built\direct\task\Task.py", line 467, in step
File "C:\Users\philippe\Documents\game\editor\test\camera\roaming-ralph\camera-main-tk-V1.py", line 173, in mMove
self.mMovePlayer()
File "C:\Users\philippe\Documents\game\editor\test\camera\roaming-ralph\camera-main-tk-V1.py", line 183, in mMovePlayer
app = simpleapp_tk(None)
File "C:\Users\philippe\Documents\game\editor\test\camera\roaming-ralph\camera-main-tk-V1.py", line 490, in __init__
Tkinter.Tk.__init__(self,parent)
File "C:\thirdparty\win-python\lib\lib-tk\Tkinter.py", line 1810, in __init__
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/tk/cmu_1.9/lib/tcl8.5 C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.9/lib/tcl8.5 C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/lib/tcl8.5 C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.9/library C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/library C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/tcl8.5.15/library C:/Users/philippe/AppData/Local/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/tcl8.5.15/library
This probably means that Tcl wasn't installed properly.
It seems that the panda3d.exe search init.tcl in these directories :
Wxpython is not supported for Windows in the packaging system at the moment (and not planned right now “It’s something that will happen eventually”) due to huge work involved - see rdb’s answer at [url]Panda3D 1.9 runtime distribution - please test!])