rollbar django suddenly not working. AttributeError: module 'lib' has no attribute 'X509_up_ref'

rollbar django suddenly not working. AttributeError: module 'lib' has no attribute 'X509_up_ref'

我的滚动条突然无法在我的 django python 应用程序上运行。它以前一直在工作,直到我合并了一些东西。它看起来更像是 openssl 问题?

>>> import rollbar
>>> rollbar.init('xxxxxx', 'production') 
>>> rollbar.report_message('Got an IOError in the main loop', 'warning')
'xxxx-xxx-xxx-xxx-xxx'
>>> From cffi callback <function _verify_callback at 0x7f08351e8730>:
Traceback (most recent call last):
  File "/home/deploy/railerdotcom/railerdotcomenv/lib/python3.5/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'

我正在使用:

Django==1.11.7
Ubuntu version 16.04

发生这种情况是因为 pyOpenssl 需要密码学 2.1.4 或更高版本:

https://github.com/pyca/pyopenssl/issues/728