Hi,
I am new to Python and I am trying to build an installer for an application.
Everything is fine until I run the exe and then I get:
Traceback (most recent call last):
  File "start.py", line 173, in <module>
  File "Tkinter.pyc", line 1647, in __init__
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    {C:/Program Files/lib/tcl8.4} {C:/Program Files/lib/tcl8.4} C:/lib/tcl8.4 {C
:/Program Files/library} C:/library C:/tcl8.4.14/library
 
 
This probably means that Tcl wasn't installed properly.
 
My current version of setup.py is the following (plagarised from a post I saw regarding Tix - http://www.py2exe.org/index.cgi/TixSetup):
 
import glob
import os
import sys
from distutils.core import setup
import py2exe
 
def files(folder):
    for path in glob.glob(folder+'/*'):
        if os.path.isfile(path):
            yield path
 
data_files=[
            ('',["schemaTemplate.py",]),
            ('.', glob.glob(sys.prefix+'/DLLs/tix84*.dll')),
            ('tcl/tix8.4', files(sys.prefix+'/tcl/tix8.4')),
            ('tcl/tix8.4/bitmaps', files(sys.prefix+'/tcl/tix8.4/bitmaps')),
            ('tcl/tix8.4/pref', files(sys.prefix+'/tcl/tix8.4/pref')),
           ]
 
setup(name="REPTOR",
      script_args=['py2exe'],
      windows=['start.py'],
      options = {"py2exe": {"packages": \
                            ["encodings",
                             "lxml",
                             "urllib",
                             "sqlalchemy.databases.sqlite",
                             "sqlalchemy.databases.mssql",
                             "sqlalchemy.databases.access",
                             "pyodbc",
                             "adodbapi",
                             "pymssql",
                             "Tkconstants","Tkinter"]}},
      data_files=data_files,
     )
 

Any help would be really appreciated.
 


Click Here View photos of singles in your area