Hi,

I use a cygwin environment to build MS Windows versions of a Python
program of mine, as it is more convenient with bash and make. The
program uses tkinter. So far it has worked nicely - I could start the
executables from cygwin, the Windows shell, and Windows explorer.

Now, with Python 3.3.3 and cx_Freeze 4.3.3, it is no longer possible to
launch the program from cygwin bash:

./myprogram.exe
Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\cx_Freeze\initscripts\Console.py",
line 27, in <module>
    exec(code, m.__dict__)
  File "myprogram.py", line 44, in <module>
  File "c:\python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1567, in
_find_and_load
  File "c:\python\32-bit\3.3\lib\importlib\_bootstrap.py", line 1534, in
_find_and_load_unlocked
  File "C:\Documents and
Settings\win7_2\Documents\myprogram\simplegui.py", line 205, in <module>
    t = tkinter.Tk()
  File "C:\Python33\lib\tkinter\__init__.py", line 1789, in __init__
    self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following
directories:
    {C:\Documents and
Settings\USER\Documents\myprogram\build\exe.win32-3.3\tcl} {C:/Documents
and Settings/USER/Documents/myprogram/build/exe.win32-3.3/tcl8.5}
{C:/Documents and Settings/USER/Documents/myprogram/build/lib/tcl8.5}
{C:/Documents and Settings/USER/Documents/myprogram/build/lib/tcl8.5}
{C:/Documents and Settings/USER/Documents/myprogram/lib/tcl8.5}
{C:/Documents and Settings/USER/Documents/myprogram/build/library}
{C:/Documents and Settings/USER/Documents/myprogram/library}
{C:/Documents and Settings/USER/Documents/myprogram/tcl8.5.11/library}
{C:/Documents and Settings/USER/Documents/tcl8.5.11/library}

This probably means that Tcl wasn't installed properly.


However, the file in question is actually there:

$ ls -l build/exe.win32-3.3/tcl/init.tcl
-rwx------+ 1 USER None 24968 Apr 10  2012 build/exe.win32-3.3/tcl/init.tcl


'myprogram.exe' runs perfectly when started via a Windows command line
or Windows explorer.

Is not being able to run executables using Tcl a (known) cx_Freeze
issue? Or a Py3k+Tcl thing?

Thanks,

    Florian


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to