Problem with py2exe
Thomas Heller
thomas.heller at ion-tof.com
Mon Feb 19 15:17:29 EST 2001
"Austin Wilson" <wilson.austin.aj at bhp.com.au> wrote in message news:96rsie$dsc$1 at gossamer.itmel.bhp.com.au...
> Hi
>
> I am trying to freeze a program using py2exe 0.2.2. However,
> I am getting the following output. Can anyone help.
>
> BTW: I am using Python20 and PIL 1.1.1 on Win98.
>
> Thanks
> Austin
>
> Resolving binary dependencies:
> Traceback (most recent call last):
> File "buildwatcher.py", line 6, in ?
> scripts=["watcher.py"],
> File "c:\program files\python20\lib\distutils\core.py", line 138, in setup
> dist.run_commands()
> File "c:\program files\python20\lib\distutils\dist.py", line 829, in
> run_commands
> self.run_command(cmd)
> File "c:\program files\python20\lib\distutils\dist.py", line 849, in
> run_command
> cmd_obj.run()
> File "py2exe\py2exe.py", line 354, in run
> dlls, unfriendly_dlls = self.find_dependend_dlls(use_runw, dlls)
> File "py2exe\py2exe.py", line 464, in find_dependend_dlls
> alldlls, warnings = bin_depends(loadpath, images)
> File "py2exe\py2exe.py", line 674, in bin_depends
> for result in py2exe_util.depends(image, loadpath).items():
> py2exe_util.bind_error: tcl83.dll
>
It seems you are trying to freeze a Tkinter program, which
is not really supported up to now.
Does your python script run from the command line correctly?
Even if your build would succeed, the resulting executable
would probably fail to run like this, because the executable
would not find the tcl/tk installation:
C:\sf\py2exe\tests\dist\_test_hanoi>_test_hanoi
Traceback (most recent call last):
File "<string>", line 154, in ?
File "<string>", line 146, in main
File "<string>", line 31, in __init__
File "Tkinter.pyc", line 1482, in __init__
TclError: Can't find a usable init.tcl in the following directories:
{} C:/sf/py2exe/tests/dist/lib/tcl8.3 C:/sf/py2exe/tests/dist/lib/tcl8.3 C:/sf/py2exe/tests/lib/
tcl8.3 C:/sf/py2exe/tests/lib/tcl8.3/library C:/sf/py2exe/tests/library C:/sf/py2exe/tests/../tcl8.3
/library C:/sf/py2exe/../tcl8.3/library
This probably means that Tcl wasn't installed properly.
Sorry,
Thomas
More information about the Python-list
mailing list