Eclipse 中的 Jython 项目找不到 xml 模块,但可以在相同的项目中工作

发布于 2024-09-06 06:40:24 字数 282 浏览 2 评论 0原文

我在 Eclipse 中有两个使用 Jython 的项目,其中包含 Java 和 Python 代码。我也在使用 PyDev。一个项目可以正常导入和使用 xml 模块,而另一个项目则给出错误 ImportError: No module named xml。据我所知,所有项目属性的设置都是相同的。工作项目是从头开始创建的,另一个来自从 svn 存储库检出并放入新项目的代码。

有什么区别?

编辑 - 与os相同,顺便说一句。它只是在某个地方缺少一些路径......

I have two projects in Eclipse with Java and Python code, using Jython. Also I'm using PyDev. One project can import and use the xml module just fine, and the other gives the error ImportError: No module named xml. As far as I can tell, all the project properties are set identically. The working project was created from scratch and the other comes from code checked out of an svn repository and put into a new project.

What could be the difference?

edit- Same for os, btw. It's just missing some path somewhere...

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

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

发布评论

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

评论(1

默嘫て 2024-09-13 06:40:24

Eclipse 将项目数据存储在

  • .project
  • .pydevprojct
  • .classpath

等文件中,并通过 svn 签入/签出,可能会丢失其中一些文件,

请检查您的点文件

eclipse stores project data in files like

  • .project
  • .pydevprojct
  • .classpath

with checkin / checkout via svn it is possible to lost some of these files

check your dot-files

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