我正在尝试发送一个简单的 XML 文件,其格式在 http://wiki.hudson-ci.org/display/HUDSON/Monitoring+external+jobs 中给出。 .我能够轻松发送它并得到想要的结果!!然后我尝试使用 python 脚本构建这个 XML 文件,它给了我我想要的确切文件,没有任何问题。但是,当我尝试运行它并将其发送给 Hudson 时,出现了错误 - “No module named dom.minidom”。我通过在 Python IDLE 中执行再次检查并且它工作正常但是当我尝试再次发送它时,我遇到了同样的错误..plz help..
最佳答案
参见 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.
有关解释,请阅读短文 blog .
关于xml - Hudson XML 错误——没有名为 dom.minidom 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3005591/