tkFileDialog -> ImportError: No module named shell

Alan G Isaac alan.isaac at
Mon Apr 13 18:26:56 CEST 2009

Why do I get the ImportError below?
What is the right way to do this?
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 "", 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