tkFileDialog -> ImportError: No module named shell

Alan G Isaac alan.isaac at gmail.com
Mon Apr 13 12:26:56 EDT 2009


Why do I get the ImportError below?
What is the right way to do this?
Thanks,
Alan Isaac



Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import Tkinter as tk
 >>> root=tk.Tk()
 >>> import tkFileDialog
 >>> fh = tkFileDialog.asksaveasfile()
Traceback (most recent call last):
   File "boot_com_servers.py", line 44, in <module>
   File "tbzr.pyo", line 125, in <module>
   File "tbzr.pyo", line 60, in get_all_com_classes
   File "contextmenu.pyo", line 9, in <module>
ImportError: No module named shell
Redirecting output to win32trace remote collector



More information about the Python-list mailing list