Hudson XML 错误——没有名为 dom.minidom 的模块

发布于 2024-09-05 02:54:41 字数 379 浏览 2 评论 0原文

我正在尝试发送一个简单的 XML 文件,其格式为 http:// /wiki.hudson-ci.org/display/HUDSON/Monitoring+external+jobs 。我能够轻松发送并得到想要的结果!然后我尝试使用 python 脚本构建这个 XML 文件,它毫无问题地为我提供了我想要的确切文件。但是当我尝试运行它并将其发送给 Hudson 时,我收到错误 - “没有名为 dom.minidom 的模块”。我通过在 Python IDLE 中执行再次检查,它工作正常,但是当我尝试再次发送它时,我收到了相同的错误..请帮助..

I am trying to send a simple XML file of the format given in http://wiki.hudson-ci.org/display/HUDSON/Monitoring+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..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肥爪爪 2024-09-12 02:54:41

请参阅导入错误:没有名为 dom.minidom 的模块

Python 脚本被命名为
xml.py 使解释器得到
使困惑。 ...
将文件重命名为 my_domxml.py 并
删除 xml.pyc 就可以了。

有关解释,请阅读简短的博客

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文