Getting XML module to work in windows.

Peter Hansen peter at engcorp.com
Mon May 27 19:23:56 EDT 2002


joel jensen wrote:
> 
> C:\Documents and Settings\joel\Desktop\test>xml.py
> Traceback (most recent call last):
>   File "C:\Documents and Settings\joel\Desktop\test\xml.py", line 1, in
> ?
>     from xml.sax import saxutils
>   File "C:\Documents and Settings\joel\Desktop\test\xml.py", line 1, in
                                                     ^^^^^^^^
> ?
>     from xml.sax import saxutils
> ImportError: No module named sax

Don't name your own module "xml.py".  It is hiding the real
xml package in the Python installation....

-Peter



More information about the Python-list mailing list