Re: ImportError: No module named sax.handler?
- From: "Martin v. Löwis" <martin@xxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 07:20:58 +0100
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?
Because you have another module called xml in your path that is found
first and has no sax package in it.
Regards,
Martin
.
- Follow-Ups:
- Re: ImportError: No module named sax.handler?
- From: Kelie
- Re: ImportError: No module named sax.handler?
- References:
- ImportError: No module named sax.handler?
- From: Kelie
- ImportError: No module named sax.handler?
- Prev by Date: Re: Oh no, my code is being published ... help!
- Next by Date: Re: Using marshal to manually "import" a python module
- Previous by thread: ImportError: No module named sax.handler?
- Next by thread: Re: ImportError: No module named sax.handler?
- Index(es):
Relevant Pages
|