Issue when using packp3d with panda3d SDK 1.9.1

Hello rdb

I don’t know how to use all the files available here : runtime.panda3d.org/

Is there an installation procedure ?

Philippe

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.

Hello RDB

The package p3d is not generated.

I launch this command :

"C:\Program Files (x86)\Panda3D\panda3d.exe" C:\Panda3D-1.9.0-x64\packp3d1.9.p3d -o C:\Users\philippe\Documents\game\editorDevel.p3d -d C:\Users\philippe\Documents\game\editor\code -m main.py -n csv -n db -n sql -r sqlite -r morepy  -r wx -D

The log :

: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.

Sorry, the wx package is not currently supported yet for 1.9, as stated in the linked thread.

Thank you RDB for the quick answer.

Do you plan to do it ?

Philippe

When I use TK the packaging p3d is generated (XP64) . I launch it, the game is working and I can move my character.

"C:\Program Files (x86)\Panda3D\panda3d.exe" C:\Users\philippe\Documents\game\roaming-ralph.p3d

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 :

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

But on my PC init.tcl is located in the following directory :

C:\Users\philippe\AppData\Local\Panda3D\hosts\runtime.panda3d.org_0f5faf88846080ae\tk\cmu_1.9[b]win_i386[/b]\lib\tcl8.5

How to solve this issue ?

Hmm, could you try putting this at the top of your script?

os.environ['TCL_LIBRARY'] = os.path.join(os.environ['TK_ROOT'], 'lib', 'tcl8.5')

Hello RDB

I tried and I got a python error the key “TCL_LIBRARY” does not exist in os.environ.

See attached pictures from the python debugger.


Hello rdb

In the release 1.9.1 : wx or tk are supported ?

When I use wx I got the message

:Packager(warning): Cannot build package roaming-ralph due to missing dependencies: wx

When I use tk i got the same error message : see post above

kind regards

Philippe

Hi -

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!])

Ok for wx

But for tk ?

kind regards

Philippe

As far as I can see at https://runtime.panda3d.org/tk/cmu_1.9/, it seems (never tested myself) that TK is part of the packages so it should normally work.

Have you used the ‘-r tk’ in the packaging command?

I have opened a bug https://bugs.launchpad.net/panda3d/+bug/1523079

wx packages are now available for 1.9 on Windows. Sorry that it took so long.

Thank you,
I test it this week end
:smiley:

Hello RDB

I have loaded the package Panda3D-SDK-1.10.0pre-0d1394f-x64.exe from : http://www.panda3d.org/download.php?platform=windows&version=devel&sdk

After installation : the binary C:\Panda3D-1.9.1-x64\bin\packp3d.exe is not available => How to generate a .p3d package ?

Kind regards

philippe

packp3d.exe is only included in the official 1.9 releases. Either install Panda3D SDK 1.9.1 or download packp3d from here:
runtime.panda3d.org/
and then run it like “panda3d.exe packp3d1.9.p3d -h”

I got an error message

Packager(warning): Unknown package wx, version “”
Packager(warning): Cannot build package editorDevel due to missing dependencies: wx

C:\Users\philippe\Documents\game\editor\code>"C:\Program Files (x86)\Panda3D\panda3d.exe" C:\Panda3D-1.10.0-x64\packp3d1.9.p3d -o C:\Users\philippe\Documents\game\editorDevel.p3d -d C:\Users\philippe\Documents\game\editor\code -m main.py -n csv -n db -n sql -r sqlite -r morepy  -r wx -D
:AppRunner: Total Panda3D disk space used: 357 MB
:AppRunner: Configured max usage is: 2048 MB

:Packager(warning): Unknown package wx, version ""
: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.

Kind regards

Philippe

Strange, since it does exist. Perhaps you can try deleting the cache directory?

I have deleted the cache directory.

Now it works : the p3D package is generated and wx is working when I launched the .p3d package

THANK YOU

Philippe