Friday, 15 February 2013

python - Py2exe, Tkinter, and Setup File Problems? -



python - Py2exe, Tkinter, and Setup File Problems? -

i finished creating python programme in 2.7 , converted .exe py2exe.

everything works fine when run converted executable file in folder placed in of images in it. after converting python programme .exe, proceeded creating setup file it. added of files associated project including tkinter in setup file. added pretty much allow me run executable.

once finished creating setup file, opened it. went through , finished installing on scheme , created shortcut on desktop. when tried open it, not work. instead of running program, tells me open log file in folder in programme files. when open log file, noticed error. how prepare this?

error:

traceback (most recent phone call last): file "gui.py", line 10, in <module> file "tkinter.pyc", line 1764, in __init__ _tkinter.tclerror: can't find usable init.tcl in next directories: {c:/program files (x86)/lib/tcl8.5} {c:/program files (x86)/lib/tcl8.5} c:/lib/tcl8.5 {c:/program files (x86)/library} c:/library c:/tcl8.5.15/library c:/tcl8.5.15/library

this means tcl wasn't installed properly.

i found bug on virutalenv site suggested next https://github.com/pypa/virtualenv/issues/93

for windows in directory "c:\environments\virtualenv\scripts\activate.bat" add together set right path tcl , tk python version

set "tcl_library=c:\python27\tcl\tcl8.5" set "tk_library=c:\python27\tcl\tk8.5" , restart cmd or shell

i believe tcl location have changed there default ones.

python user-interface tkinter inno-setup py2exe

No comments:

Post a Comment