centos 上扭曲缺少 mail.smtp?
我试图让 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
两个问题:
- 我可以从 yum 中获取一些可以提供此文件的东西,还是我需要对这部分的twisted 采取手动策略?
- 对于基于 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:
- 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?
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Redhat 中 apt-file 的等价物是“yum whatprovides”。但我确实为您正在寻找的 smtp 包尝试过此操作,它确实返回了任何匹配的包:(
此链接有一个 不同包管理器的比较,希望有帮助
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 :(
This link has a comparison about different package managers, hope it helps