CI - build failing for pypy / pypy3
bakwc opened this issue · 0 comments
bakwc commented
Some issues with OpenSSL and pypy, need to investigate
https://travis-ci.org/github/bakwc/PySyncObj/jobs/738857934
=================================== FAILURES ===================================
________________________ test_encryptionCorrectPassword ________________________
def test_encryptionCorrectPassword():
assert HAS_CRYPTO
random.seed(42)
a = [getNextAddr(), getNextAddr()]
> o1 = TestObj(a[0], [a[1]], password='asd')
a = ['127.0.0.1:18325', '127.0.0.1:18326']
test_syncobj.py:626:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_syncobj.py:116: in __init__
super(TestObj, self).__init__(selfNodeAddr, otherNodeAddrs, cfg, consumers)
pysyncobj/syncobj.py:124: in __init__
self.__encryptor = getEncryptor(self.__conf.password)
pysyncobj/encryptor.py:22: in getEncryptor
backend=default_backend()
../../../virtualenv/pypy2.7-7.1.1/site-packages/cryptography/hazmat/backends/__init__.py:15: in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
../../../virtualenv/pypy2.7-7.1.1/site-packages/cryptography/hazmat/backends/openssl/__init__.py:7: in <module>
from cryptography.hazmat.backends.openssl.backend import backend
../../../virtualenv/pypy2.7-7.1.1/site-packages/cryptography/hazmat/backends/openssl/backend.py:117: in <module>
from cryptography.hazmat.bindings.openssl import binding
../../../virtualenv/pypy2.7-7.1.1/site-packages/cryptography/hazmat/bindings/openssl/binding.py:222: in <module>
_verify_openssl_version(Binding.lib)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
lib = <module 'lib' from ?>
def _verify_openssl_version(lib):
if (
lib.CRYPTOGRAPHY_OPENSSL_LESS_THAN_110
and not lib.CRYPTOGRAPHY_IS_LIBRESSL
):
if os.environ.get("CRYPTOGRAPHY_ALLOW_OPENSSL_102"):
warnings.warn(
"OpenSSL version 1.0.2 is no longer supported by the OpenSSL "
"project, please upgrade. The next version of cryptography "
"will completely remove support for it.",
utils.CryptographyDeprecationWarning,
)
else:
raise RuntimeError(
> "You are linking against OpenSSL 1.0.2, which is no longer "
"supported by the OpenSSL project. To use this version of "
"cryptography you need to upgrade to a newer version of "
"OpenSSL. For this version only you can also set the "
"environment variable CRYPTOGRAPHY_ALLOW_OPENSSL_102 to "
"allow OpenSSL 1.0.2."
)
E RuntimeError: You are linking against OpenSSL 1.0.2, which is no longer supported by the OpenSSL project. To use this version of cryptography you need to upgrade to a newer version of OpenSSL. For this version only you can also set the environment variable CRYPTOGRAPHY_ALLOW_OPENSSL_102 to allow OpenSSL 1.0.2.