开发者

Hudson XML error-- No module named dom.minidom

开发者 https://www.devze.com 2023-01-03 08:11 出处:网络
I am trying to send a simple XML file of the format given in http://wiki.hudson-ci.org/display/HUDSON/Monit开发者_C百科oring+external+jobs . I was able to send it easily and was getting desired result

I am trying to send a simple XML file of the format given in http://wiki.hudson-ci.org/display/HUDSON/Monit开发者_C百科oring+external+jobs . I was able to send it easily and was getting desired result!! Then I tried to build this XML file using python script and it was giving me the exact file that I wanted without any problem. But when I tried to run this and send it to Hudson, I was getting the error - "No module named dom.minidom" . I checked again by executing in Python IDLE and it ws working fine but when I tried to send it again, I was getting the same error.. plz help..


See ImportError: No module named dom.minidom.

The python script being named as xml.py causes the intepreter to get confused. ... Renaming the file as my_domxml.py and deleting the xml.pyc did the trick.

For an explanation, read the short blog.

0

精彩评论

暂无评论...
验证码 换一张
取 消