This message was edited by Drost at 2005-3-31 6:22:44
This message was edited by Drost at 2005-3-31 6:21:50
: : : when i try to run my code, i get a -> importerror: no module named dom. the first few lines of my code is below,
: : :
: : : import os
: : : import time
: : : import urllib
: : : from xml.dom import minidom
: : : from xml.sax.saxutils import escape
: : :
: : : why is there such an error? i tried a fresh install of python 2.4 but the same error occurs. i've uninstalled 2.4 and reinstalled 2.3.5. can anyone help?
: :
: : Just to be clear, you get the error with 2.4 but not with 2.3.5?
: :
: : Did you install any other packages with 2.3.5, like PyXML or anything like that?
: :
: :
: :
infidel
: :
: :
: : $ select * from users where clue > 0
: : no rows returned
: :
: :
: :
:
: i still get the error with 2.3.5. the funny thing is, the line "from xml.dom import minidom" works fine when i type it in IDLE. but when i open my program in IDLE, it wont run, giving the error mentioned above. i installed wxpython and py2exe but i remember trying to run the program with only python installed but still getting the error. any ideas?
:
Do you have a directory called xml beside your script? Which has "accidentally" an __init__.py in it? Which would mean to the parser that you want to use that self-made-module-which-consists-of-several-files (what are those actually called?)instead of the real one.
Drost