On Apr 13, 11:26 am, Alan G Isaac <alan.is...@gmail.com> wrote:
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



On 4/13/2009 2:28 PM Mike Driscoll apparently wrote:
Well, if you have tortoisehg installed, uninstall it. That was what was giving me this exact error with wxPython file dialogs.



No, I don't have tortoisehg.
But, I do have Bazaar installed,
and that is the only place I see contextmenu.pyo.

And that appears to be the source of the problem:
https://bugs.launchpad.net/bzr/+bug/305085

Can you help me understand how
another application can interfere with Tkinter
in such a fashion?

Thank you!
Alan Isaac

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to