2010-10-14 33 views
0

我试图让buildbot上centos5运行,并得到以下错误:扭曲在centos缺少mail.smtp?

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. 有没有什么我可以从百胜将提供这个文件或我需要诉诸手动战术这部分扭曲?
  2. 有没有类似于基于rpm/yum的系统的apt-file命令的任何内容?

谢谢。

(我认为是超级用户,但这似乎如此紧密耦合到编程,我期望在这里更好的答案...)

回答

1

的apt-文件在redhat相当于是“荫whatprovides”。但我没有尝试这个你正在寻找的SMTP包,它没有返回任何匹配的包:(

[[email protected] ~]$ 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 

此链接有comparison about different package managers,希望它有助于

+0

感谢,对whatprovides尖端是很有帮助的。 – bstpierre 2010-10-17 15:57:46