StoneDeCroze
Programmer
Can anyone help?
If I run Python interactively any or all of the three following lines work:
import xml
import xml.dom
import xml.minidom
However when I create a script and run it, the only one to work is:
import xml
The other two produce the following error:
Traceback (most recent call last):
File "xml.py", line 1, in ?
import xml.dom
File "xml.py", line 1, in ?
import xml.dom
ImportError: No module named dom
I get the same problem on both my windows and linux boxes - what I have done wrong?
Peter
If I run Python interactively any or all of the three following lines work:
import xml
import xml.dom
import xml.minidom
However when I create a script and run it, the only one to work is:
import xml
The other two produce the following error:
Traceback (most recent call last):
File "xml.py", line 1, in ?
import xml.dom
File "xml.py", line 1, in ?
import xml.dom
ImportError: No module named dom
I get the same problem on both my windows and linux boxes - what I have done wrong?
Peter