Closed chrisburr closed 7 months ago
In M2Crypto 0.40.0 it's init file was modified to no longer export it's various submodules:
https://gitlab.com/m2crypto/m2crypto/-/commit/ce75069d20053ad7bd558166eeb7c9ec8c7d77da#a316cb2948e657263203704c0d90d450799ab975_26_24
This has the effect of meaning that you must now explicitly import submodules:
>>> import M2Crypto >>> M2Crypto.X509 Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'M2Crypto' has no attribute 'X509'
>>> import M2Crypto.X509 >>> M2Crypto.X509 <module 'M2Crypto.X509' from '.../site-packages/M2Crypto/X509.py'>
BEGINRELEASENOTES
*Core FIX: Support M2Crypto 0.40.0+
ENDRELEASENOTES
Sweep summary
Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/8685026476
In M2Crypto 0.40.0 it's init file was modified to no longer export it's various submodules:
https://gitlab.com/m2crypto/m2crypto/-/commit/ce75069d20053ad7bd558166eeb7c9ec8c7d77da#a316cb2948e657263203704c0d90d450799ab975_26_24
This has the effect of meaning that you must now explicitly import submodules:
BEGINRELEASENOTES
*Core FIX: Support M2Crypto 0.40.0+
ENDRELEASENOTES