I used Tkinter in my panda program. It run properly. Then I packed it into p3d. It is ok also.
I try to run p3d. But I go following problem:
File “c:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\showbase\ShowBase.py”, line 2812, in startTK
File “c:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\showbase\ShowBase.py”, line 2828, in spawnTkLoop
AttributeError: ‘module’ object has no attribute ‘initialise’
Failure on startup.
I am using windows7 64 bit panda3d1.8.1
I don’t know What is the problem? And how can I do? I’m not familiar with Tkinter or Panda3d. Can anyone help me?
from direct.showbase.TkGlobal import *
The problem is solved. But I got new problem:
IOError: [Errno 2] No such file or directory: 'c:\Users\Vivian\AppData\Local\Panda3D\hosts\reuntime.panda3d.org_0f5faf88846080ae\
But It can’t be found. And I try to copy it into the folder by myself. But it will be deleted automatically,when run my p3d file.
Can anyone help me?
You should add “-r tk” to the packp3d command-line.
-r tk has been added already.
all components in tk.cmu_1.8.win32.import.xml has been downloaded except this file.
How can I force the download or copy it into the directory
I’m investigating the bug.
Thank you for your job.
I can pack p3d file now.
But The problem still can be found if I’m trying to run the p3d file.
Maybe fix this bug also.