Python 2.7 Certbot抛出类型错误
我有点被难住了。我以前从未见过Python 2.7 Certbot抛出类型错误,python-2.7,lets-encrypt,certbot,Python 2.7,Lets Encrypt,Certbot,我有点被难住了。我以前从未见过inspect.py中的错误,但在这里我尝试使用certbot安装一些SSL证书,出现了一个错误。包含堆栈跟踪的certbot日志为,但错误为: File "/usr/lib64/python2.7/inspect.py", line 815, in getargspec raise TypeError('{!r} is not a Python function'.format(func)) TypeError: <method-wrapper
inspect.py
中的错误,但在这里我尝试使用certbot安装一些SSL证书,出现了一个错误。包含堆栈跟踪的certbot日志为,但错误为:
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
getargspec中的第815行“/usr/lib64/python2.7/inspect.py”文件
raise TypeError(“{!r}不是Python函数”。format(func))
TypeError:不是Python函数
并且在运行certbot certonly
时发生。其他命令(如检索版本)也可以
我尝试了一些方法(卸载/重新安装等),但没有效果。我试图避免从git或其他源代码安装(尝试使用yum
)。更多细节
- Centos@7.1.1503(核心)
- certbot@0.8.1
非常感谢您的帮助。如果合适的话,我会在GitHub上打开一个问题,但我想我会先在这里询问。您需要使用以下内容更新加密: pip2安装-U加密 也许还有pyOpenSSL: pip2安装-U pyOpenSSL 可以使用一个命令检查所有要求:
pip2安装-U certbot我会试试这个!非常感谢。