【问题标题】:twisted on centos missing mail.smtp?扭曲了centos缺少mail.smtp?
【发布时间】:2011-04-25 15:05:44
【问题描述】:

我正在尝试让 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 中提取一些东西来提供这个文件,还是我需要对这部分扭曲采取手动策略?
  2. 对于基于 rpm/yum 的系统,是否有类似于上述 apt-file 命令的内容?

谢谢。

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

【问题讨论】:

    标签: python twisted centos rpm


    【解决方案1】:

    在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
    

    此链接有comparison about different package managers,希望对您有所帮助

    【讨论】:

    • 谢谢,关于提供什么的提示很有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-03
    相关资源
    最近更新 更多