【问题标题】:Certbot throws TypeErrorCertbot 抛出 TypeError
【发布时间】:2016-11-18 03:37:09
【问题描述】:

我在这里有点难过。我以前从未见过来自inspect.py 的错误,但在这里我尝试使用 certbot 安装一些 SSL 证书并发生错误。包括堆栈跟踪的certbot日志是here,但错误是:

  File "/usr/lib64/python2.7/inspect.py", line 815, in getargspec
    raise TypeError('{!r} is not a Python function'.format(func)) 
TypeError: <method-wrapper '__ne__' of type object at 0x1eeab80> is not a Python function

并且在运行certbot certonly 时发生。其他命令,例如检索版本,都可以。

我尝试了一些方法(卸载/重新安装等),但无济于事。我试图避免从 git 或其他来源安装(试图坚持使用yum)。更多细节

  • Centos @ 7.1.1503(核心)
  • certbot @ 0.8.1

奇怪的是,这个错误似乎表明实施中有错误,但我觉得这很奇怪,因为我在另一台 CentOS 7 机器上使用 certbot 没有问题。

非常感谢任何帮助。如果合适,我会在 GitHub 上打开一个问题,但我想我会先在这里问。

【问题讨论】:

    标签: python-2.7 lets-encrypt certbot


    【解决方案1】:

    您需要更新密码学: pip2 install -U 密码学

    也许还有 pyOpenSSL: pip2 install -U pyOpenSSL

    您可以使用一个命令来检查所有要求: pip2 install -U certbot

    【讨论】:

    • 我会试试这个!谢谢。
    猜你喜欢
    • 2011-10-03
    • 1970-01-01
    • 1970-01-01
    • 2021-10-07
    • 2018-08-28
    • 2014-10-05
    • 1970-01-01
    • 2023-03-14
    • 2021-08-05
    相关资源
    最近更新 更多