#1135796 weechat-matrix script does not load

Package:
weechat-matrix
Source:
weechat-matrix
Description:
matrix plugin for weechat
Submitter:
andrew
Date:
2026-05-29 10:07:01 UTC
Severity:
normal
Tags:
#1135796#5
Date:
2026-05-06 01:15:55 UTC
From:
To:
Dear Maintainer,

Trying to use weechat-matrix on Trixie for the first time, I started
weechat, then typed this command:


/script load matrix.py

I received an error and the script did not load:

         │00:50:36     ? python: loading script "/usr/share/weechat/python/matrix.py"
         │00:50:36     ? python: stdout/stderr (?): Traceback (most recent call last):
         │00:50:36     ? python: stdout/stderr (?):   File "/usr/share/weechat/python/matrix.py", line 43, in <module>
         │00:50:36     ? python: stdout/stderr (?):     import OpenSSL.crypto as crypto
         │00:50:36     ? python: stdout/stderr (?):   File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
         │00:50:36     ? python: stdout/stderr (?):     from OpenSSL import SSL, crypto
         │00:50:36     ? python: stdout/stderr (?):   File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 15, in <module>
         │00:50:36     ? python: stdout/stderr (?):     from cryptography import x509
         │00:50:36     ? python: stdout/stderr (?):   File "/usr/lib/python3/dist-packages/cryptography/x509/__init__.py", line 7, in <module>
         │00:50:36     ? python: stdout/stderr (?):     from cryptography.x509 import certificate_transparency, verification
         │00:50:36     ? python: stdout/stderr (?):   File "/usr/lib/python3/dist-packages/cryptography/x509/certificate_transparency.py", line 11, in <module>
         │00:50:36     ? python: stdout/stderr (?):     from cryptography.hazmat.bindings._rust import x509 as rust_x509
         │00:50:36     ? python: stdout/stderr (?): ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process
         │00:50:36 =!= ? python: unable to parse file "/usr/share/weechat/python/matrix.py"

As part of reporting this bug, I used Docker's debian:trixie tag and
received the same error. However when installing weechat-matrix in the debian:testing image,
There was no error. So this is a bug against debian stable only.