ImportError: No module named sax.handler?



Hello,

I'm lost here. When I put this line

from xml.sax.handler import ContentHandler

in a .py file and run it, I get the ImportError. When I execute it in
shell, there is no error.

Why?

Thanks for your help!
.



Relevant Pages

  • Re: Module imports during object instantiation
    ... Now this import can fail for a lot of reasons, and since your catching *and dismissing* the ImportError, you don't know what *effectively* happens. ... you have because of the "execute code only once" behavior - if the ... class Log. ... keeping them as lightweight as possible. ...
    (comp.lang.python)
  • Re: Program not ending???
    ... Allright first off I can't keep updating down in the message. ... I'm getting lost. ... Armin Zingler wrote: ... > Yes, because you execute the code /before/ the Form has been> shown, i.e. in form_load. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Knowing your oranges.
    ... I don't know who to blame it on, but I do know I agree with your ... common position. ... I think I once lost myself a few friends when, ... What good is being an executive if you never get to execute anyone? ...
    (alt.usage.english)
  • ToolTip and MouseOver events lost on Hide/Minimize
    ... All my tooltips seem to be lost upon Hiding the form or setting the ... WindowsState to Minimized then Normal as well as not having any events ... execute for my buttons MouseHover/MouseLeave events after hiding the form. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Disappearing icon
    ... MS MVP Windows - Internet Explorer ... lost in XP <lost in XP ... icon has disappeared from my system tray. ... I'd like to get it back, or at least find some other way to execute ...
    (microsoft.public.windowsxp.general)