Re: [cx-freeze-users] ImportError: No module named Tkinter
Brought to you by:
atuining
From: brad s. <bra...@gm...> - 2007-05-12 18:29:12
|
you must either have Tkinter in your path, or use --init-script=ConsoleSetLibPath main.py when you are freezing your app. Brad On 5/11/07, oyster <lep...@gm...> wrote: > Hello, everyone. I am using python 24 and cx_freeze 3.0.3 on Simplified > Chinese win2k with sp4. > The following code works fine if I use python to interpreter it > [code] > #main.py > import Tkinter > root=Tkinter.Tk() > root.mainloop() > [/code] > > however after freezing, main.exe refuses to work with a prompt > [quote] > D:\main>main > Traceback (most recent call last): > File "D:\initscripts\console.py", line 27, in ? > exec code in m.__dict__ > File "main.py", line 3, in ? > ImportError: No module named Tkinter > [/quote] > > So, what is the workaround? Thanx. > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > |