#1086083 poezio: Crashes on startup

#1086083#5
Date:
2024-10-26 14:53:01 UTC
From:
To:
Dear Maintainer,

after starting poezio for the first time after freshly installing it, it
crashes immediately:

```
poezio
Traceback (most recent call last):
  File "/usr/bin/poezio", line 33, in <module>
    sys.exit(load_entry_point('poezio==0.14', 'console_scripts', 'poezio')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/poezio/__main__.py", line 8, in run
    main()
  File "/usr/lib/python3/dist-packages/poezio/poezio.py", line 110, in main
    cocore = Core(options.custom_version, firstrun)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/poezio/core/core.py", line 149, in __init__
    self.xmpp = connection.Connection(custom_version)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/poezio/connection.py", line 208, in __init__
    self.register_plugin('xep_0454')
  File "/usr/lib/python3/dist-packages/slixmpp/basexmpp.py", line 268, in register_plugin
    load_plugin(plugin, module)
  File "/usr/lib/python3/dist-packages/slixmpp/plugins/base.py", line 78, in load_plugin
    __import__(module)
  File "/usr/lib/python3/dist-packages/slixmpp/plugins/xep_0454/__init__.py", line 19, in <module>
    from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__init__.py", line 11, in <module>
    from cryptography.hazmat.primitives.ciphers.base import (
  File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/base.py", line 10, in <module>
    from cryptography.hazmat.bindings._rust import openssl as rust_openssl
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.
```

Best regards,
Martin

#1086083#10
Date:
2024-10-26 15:27:59 UTC
From:
To:
Kaliko pointed me at https://github.com/pyca/cryptography/issues/10198
and indeed setting `CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 poezio` makes
poezio start.