xml install problem - No module named Node

Kapil Thangavelu kvthan at wm.edu
Thu Feb 1 12:24:18 EST 2001


Tushar Wagle wrote:

> I'm trying to use the new XML library in Python 2.0, but cannot
> get the examples to work.
> 
> The error I get when running the iterator1.py example is:
> 
>    File: "iterator1.py", line 5, in ?
>       from xml.dom.Node import Node
>    ImportError: No module named Node
> 
> which looks like a basic installation error. However, some of the other
> examples
> 

Node is now defined in __init__.py of xml.dom

try instead
from xml.dom import Node

kapil




More information about the Python-list mailing list