Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] Support M2Crypto 0.40.0+ #7568

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

chrisburr
Copy link
Member

@chrisburr chrisburr commented Apr 13, 2024

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

@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Apr 13, 2024
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:

```python
>>> import M2Crypto
>>> M2Crypto.X509
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'M2Crypto' has no attribute 'X509'
```

```python
>>> import M2Crypto.X509
>>> M2Crypto.X509
<module 'M2Crypto.X509' from '.../site-packages/M2Crypto/X509.py'>
```
@chrisburr chrisburr force-pushed the support-m2crypto-0.40 branch from 5a26bb0 to 4353699 Compare April 13, 2024 09:28
chrisburr added a commit to aldbr/DIRACOS2 that referenced this pull request Apr 13, 2024
@fstagni fstagni merged commit 24f11c3 into DIRACGrid:rel-v8r0 Apr 15, 2024
25 checks passed
@DIRACGridBot DIRACGridBot added the sweep:done All sweeping actions have been done for this PR label Apr 15, 2024
DIRACGridBot pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Apr 15, 2024
@DIRACGridBot
Copy link

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/8685026476

Successful:

  • integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alsoTargeting:integration Cherry pick this PR to integration after merge sweep:done All sweeping actions have been done for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants