python - Tkinter Cxfreeze Error -
i'm trying make exe in windows out of python developed in linux. program works on it's own in python under windows, , when use cxfreeze completes , makes exe. when run get:
c:\projects\0802001s\dist>listen.exe traceback (most recent call last): file "c:\python26\lib\site-packages\cx_freeze\initscripts\console.py", line 27 , in <module> exec code in m.__dict__ file "./listen.py", line 425, in <module> file "c:\python26\lib\lib-tk\tkinter.py", line 1643, in __init__ self.tk = _tkinter.create(screenname, basename, classname, interactive, want objects, usetk, sync, use) _tkinter.tclerror: can't find usable init.tcl in following directories: c:/projects/0802001s/lib/tcl8.5 c:/projects/0802001s/lib/tcl 8.5 c:/projects/lib/tcl8.5 c:/projects/0802001s/library c:/projects/libr ary c:/projects/tcl8.5.9/library c:/tcl8.5.9/library
this means tcl wasn't installed properly.
so, looked init.tcl in python26 directory in c: drive, , copied 1 of directories suggested. gave me error:
c:\projects\0802001s\dist>listen.exe traceback (most recent call last): file "c:\python26\lib\site-packages\cx_freeze\initscripts\console.py", line 27 , in <module> exec code in m.__dict__ file "./listen.py", line 425, in <module> file "c:\python26\lib\lib-tk\tkinter.py", line 1643, in __init__ self.tk = _tkinter.create(screenname, basename, classname, interactive, want objects, usetk, sync, use) _tkinter.tclerror: invalid command name "tcl_findlibrary"
i seem have hit wall @ point , remember why switched linux in first place.
any suggestions who's more familiar windows?
i ran similar. conclusion have far copy both tcl8.5 , tk8.5 directory you're running listen.exe (dist/build dir).
i on cx_freeze mailinglist , there mentioning hook possibly running on unix since never tested in windows of current build (12/29/10)
Comments
Post a Comment