nachdem ich nun ein funktionierendes Py-Prog habe, will ich es in eine exe umwandeln.
Habe mich natürlich schlau gemacht, wie das so geht. Ausser py2exe hab ich auch py-installer 1.3 ausprobiert, komme jetzt aber nicht mehr weiter.
Es wird zwar eine .exe erstellt, wenn ich diese aber öffnen will, erscheint ein schwarzes Fenster (ähnlich CMD) und geht wieder zu, bzw. es kommt nur eine Meldung, dass im Log-File eine Fehlermeldung ist, und diese sieht so aus:
Code: Alles auswählen
Traceback (most recent call last):
File "TCTS.py", line 10, in <module>
File "Tix.pyo", line 210, in __init__
_tkinter.TclError: can't find package Tix
Hier mal die includes:
Code: Alles auswählen
from Tkinter import*
from Tix import *
from tkFileDialog import askopenfilename
import win32com.client
import win32ui
import win32con
import time
from PIL import Image, ImageTk
Code: Alles auswählen
from distutils.core import setup
import py2exe
import glob
import os
import sys
def files(folder):
for path in glob.glob(folder+'/*'):
if os.path.isfile(path):
yield path
data_files=[
('.', glob.glob(sys.prefix+'/DLLs/tix81*.dll')),
('tcl/tix8.1', files(sys.prefix+'/tcl/tix8.1')),
('tcl/tix8.1/bitmaps', files(sys.prefix+'/tcl/tix8.1/bitmaps')),
('tcl/tix8.1/pref', files(sys.prefix+'/tcl/tix8.1/pref')),
]
setup( options = {"py2exe": {"compressed": 1,
"optimize": 2,
"ascii": 1,
"bundle_files": 3
}
},
data_files= [("media",
["logo.gif"])
],
windows=["C:\Python25\TCTS.py"]
com_server=["win32com.server.client"])
Hat mir jemand einen Rat?
Wäre verdammt schade, wenn das nicht irgendie klappt...
danke schonmal