centos 上扭曲缺少 mail.smtp?

发布于 2024-09-27 16:10:37 字数 793 浏览 5 评论 0原文

我试图让 buildbot 在 centos5 上运行,并收到以下错误:

  File "/usr/lib/python2.4/site-packages/buildbot/status/mail.py", line 14, in ?
    from twisted.mail.smtp import sendmail, ESMTPSenderFactory
ImportError: No module named mail.smtp

我安装了以下扭曲的软件包(并且没有看到任何其他与安装相关的内容):

$ rpm -qa | grep twisted
python-twisted-web-0.7.0-1.el5
python-twisted-core-2.5.0-4.el5
python-twisted-words-0.5.0-3.el5

我更熟悉 debian 我可以做的事情:

$ apt-file find twisted/mail/smtp
python-twisted-mail: /usr/share/pyshared/twisted/mail/smtp.py

两个问题:

  1. 我可以从 yum 中获取一些可以提供此文件的东西,还是我需要对这部分的twisted 采取手动策略?
  2. 对于基于 rpm/yum 的系统,是否有类似于上面的 apt-file 命令的东西?

谢谢。

(我考虑过超级用户,但这似乎与编程紧密结合,我希望在这里有更好的答案......)

I'm trying to get buildbot running on centos5, and getting the following error:

  File "/usr/lib/python2.4/site-packages/buildbot/status/mail.py", line 14, in ?
    from twisted.mail.smtp import sendmail, ESMTPSenderFactory
ImportError: No module named mail.smtp

I have the following twisted packages installed (and don't see anything else relevant to install):

$ rpm -qa | grep twisted
python-twisted-web-0.7.0-1.el5
python-twisted-core-2.5.0-4.el5
python-twisted-words-0.5.0-3.el5

I'm more familiar with debian where I can do:

$ apt-file find twisted/mail/smtp
python-twisted-mail: /usr/share/pyshared/twisted/mail/smtp.py

Two questions:

  1. Is there something I can pull from yum that will provide this file or do I need to resort to manual tactics for this part of twisted?
  2. Is there anything analogous to the apt-file command above for rpm/yum-based systems?

Thanks.

(I considered superuser, but this seems so tightly coupled to programming that I expect better answers here...)

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

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

发布评论

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

评论(1

残龙傲雪 2024-10-04 16:10:37

Redhat 中 apt-file 的等价物是“yum whatprovides”。但我确实为您正在寻找的 smtp 包尝试过此操作,它确实返回了任何匹配的包:(

[vc@vc ~]$ yum whatprovides */twisted/mail/smtp.py 
Loaded plugins: downloadonly, fastestmirror 
Excluding Packages in global exclude list 
Finished 
addons/filelists                       |  195 B     00:00      
base/filelists_db                      | 3.4 MB     00:01      
extras/filelists_db                    | 197 kB     00:00      
updates/filelists_db                   | 2.9 MB     00:01      
No Matches found

此链接有一个 不同包管理器的比较,希望有帮助

The equivalent of apt-file in redhat is "yum whatprovides". But I did try this for the smtp package you are looking for and it did return any matching package :(

[vc@vc ~]$ yum whatprovides */twisted/mail/smtp.py 
Loaded plugins: downloadonly, fastestmirror 
Excluding Packages in global exclude list 
Finished 
addons/filelists                       |  195 B     00:00      
base/filelists_db                      | 3.4 MB     00:01      
extras/filelists_db                    | 197 kB     00:00      
updates/filelists_db                   | 2.9 MB     00:01      
No Matches found

This link has a comparison about different package managers, hope it helps

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