1.9.1 : package execution error with tk

Bug #1523079 reported by Philippec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Won't Fix
Undecided
Unassigned

Bug Description

panda3D 1.9.1
windows 10 family version 1511
XP64

When I compile a panda3D python script with C:\Panda3D-1.9.1-x64\bin\packp3d.exe with -t tk option.
When i execute the result xxx.p3d file with C:\Program Files (x86)\Panda3D\panda3d.exe.

see post : http://www.panda3d.org/forums/viewtopic.php?f=5&t=18066

--------------------------------------
To reproduce the issue :
--------------------------------------
1/ install panda3d 1.9.1 and the runtime
2/ unzip the attached file
3/ open a command windows
4/ drag and drop package.bat in the command windows
5/ execute => ralph demo is launched.
6/ use the forward ARROW key to get the error message in the command window.

ERROR MESSAGE : "Can't find a usable init.tcl "

"C:\Program Files (x86)\Panda3D\panda3d.exe" "C:\Users\philippe\Documents\game\editor\test\roaming-ralph\roaming-ralph.p3d"
:AppRunner: Total Panda3D disk space used: 352 MB
:AppRunner: Configured max usage is: 2048 MB
:display: loading display module: libpandagl.dll
:display: loading display module: libpandadx9.dll
:display: loading display module: libp3tinydisplay.dll
Known pipe types:
  wglGraphicsPipe
  wdxGraphicsPipe9
  TinyWinGraphicsPipe
  TinyOffscreenGraphicsPipe
(all display modules loaded.)
:display:windisplay: OS version: 6.2.2.9200
:display:windisplay:
:display:windisplay: max Mhz 3101000000, current Mhz 3101000000
:ShowBase: Default graphics pipe is wglGraphicsPipe (OpenGL).
:display: Created output of type wglGraphicsWindow
:display: Unable to set window properties: !undecorated !fixed_size
:ShowBase: Successfully opened window of type wglGraphicsWindow (OpenGL)
:pnmtext: Loaded font Perspective Sans Regular
:ShowBase: __dev__ == False
:audio: NullAudioManager
:audio: NullAudioManager
:loader: Reading /c/Users/philippe/AppData/Local/Panda3D/start/models/world.bam
:gobj: Loading texture /c/Users/philippe/AppData/Local/Panda3D/start/models/ground.jpg
:gobj: Loading texture /c/Users/philippe/AppData/Local/Panda3D/start/models/tree.jpg
:gobj: Loading texture /c/Users/philippe/AppData/Local/Panda3D/start/models/rock03.jpg
:gobj: Loading texture /c/Users/philippe/AppData/Local/Panda3D/start/models/hedge.jpg
:loader: Reading /c/Users/philippe/AppData/Local/Panda3D/start/models/ralph.bam
:gobj: Loading texture /c/Users/philippe/AppData/Local/Panda3D/start/models/ralph.jpg
Traceback (most recent call last):
  File "C:\Users\philippe\Documents\game\editor\test\roaming-ralph\main.py", line 212, in move
    app = simpleapp_tk(None)
  File "C:\Users\philippe\Documents\game\editor\test\roaming-ralph\main.py", line 40, in __init__
    Tkinter.Tk.__init__(self,parent)
  File "C:\thirdparty\win-python\lib\lib-tk\Tkinter.py", line 1814, 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.

:task(error): Exception occurred in PythonTask moveTask
Traceback (most recent call last):
  File "C:\buildslave\rtdist-windows-i386\build\built\direct\p3d\AppRunner.py", line 596, 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\roaming-ralph\main.py", line 212, in move
    app = simpleapp_tk(None)
  File "C:\Users\philippe\Documents\game\editor\test\roaming-ralph\main.py", line 40, in __init__
    Tkinter.Tk.__init__(self,parent)
  File "C:\thirdparty\win-python\lib\lib-tk\Tkinter.py", line 1814, 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.

:display: Closing wglGraphicsWindow
Failure on startup.

--------------------------------------------
Without packaging : no issue
--------------------------------------------
1/ double click on main.py => ralph demo is launched.
2/ use the forward ARROW key to get theTK window => it works

Revision history for this message
Philippec (cainphilippe) wrote :
rdb (rdb)
tags: added: packaging
Revision history for this message
Philippec (cainphilippe) wrote :

On linux the same problem than on windows is remaining :

Regarding this issue : _tkinter.TclError: Can't find a usable init.tcl in the following directories:
   ~/.panda3d/hosts/runtime.panda3d.org_0f5faf88846080ae/tk/cmu_1.9/lib/tcl8.5

There is an error in the directory the runtime for the p3d is installed here :

~/.panda3d/hosts/runtime.panda3d.org_0f5faf88846080ae/tk/cmu_1.9/linux_amd64/lib/tcl8.5

the path linux_amd64 is missing on linux

rdb (rdb)
tags: added: runtime windows
Revision history for this message
rdb (rdb) wrote :

packp3d is no longer supported in 1.10 (in favour of the new setuptools-based deployment system), so I'm closing this. Please file an issue on GitHub if the issue still persists with deploy-ng.

Changed in panda3d:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.