gpt4 book ai didi

python - 扭曲了centos缺少mail.smtp?

转载 作者:行者123 更新时间:2023-12-04 19:39:15 25 4
gpt4 key购买 nike

我试图让 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 中提取的东西来提供这个文件,还是我需要对这部分扭曲采取手动策略?
  • 有什么类似于 apt-file 的吗?上面的命令用于基于 rpm/yum 的系统?

  • 谢谢。

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

    最佳答案

    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 , 希望能帮助到你

    关于python - 扭曲了centos缺少mail.smtp?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3937164/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com