You are not logged in.
Firstly, I'm not sure why "community/weechat-matrix" doesn't exist in my pacman repos in my case (original repo weechat-matrix). I had to revert to the aur package. Then installing it and "/script load matrix.py inside weechat results in:
│10:59:43 │ python: stdout/stderr (?): from
│ │ cryptography.hazmat.bindings.openssl.binding import Binding
│10:59:43 │ python: stdout/stderr (?): File "/usr/lib/python3.12/site-packages/cryptograp
│ │ hy/hazmat/bindings/openssl/binding.py", line 15, in <module>
│10:59:43 │ python: stdout/stderr (?): from cryptography.exceptions import
│ │ InternalError
│10:59:43 │ python: stdout/stderr (?): File
│ │ "/usr/lib/python3.12/site-packages/cryptography/exceptions.py", line 9, in
│ │ <module>
│10:59:43 │ python: stdout/stderr (?): from cryptography.hazmat.bindings._rust import
│ │ exceptions as rust_exceptions
│10:59:43 │ python: stdout/stderr (?): ImportError: PyO3 modules do not yet support
│ │ subinterpreters, see https://github.com/PyO3/pyo3/issues/576
│10:59:43 =!= │ python: unable to parse file
│ │ "/home/aissy/.local/share/weechat/python/matrix.py"
│11:00:04 │ python: loading script "/home/aissy/.local/share/weechat/python/matrix.py"
│11:00:04 │ python: stdout/stderr (?): Traceback (most recent call last):
│11:00:04 │ python: stdout/stderr (?): File
│ │ "/home/aissy/.local/share/weechat/python/matrix.py", line 43, in <module>
│11:00:04 │ python: stdout/stderr (?): import OpenSSL.crypto as crypto
│11:00:04 │ python: stdout/stderr (?): File
│ │ "/usr/lib/python3.12/site-packages/OpenSSL/__init__.py", line 8, in <module>
│11:00:04 │ python: stdout/stderr (?): from OpenSSL import SSL, crypto
│11:00:04 │ python: stdout/stderr (?): File
│ │ "/usr/lib/python3.12/site-packages/OpenSSL/SSL.py", line 11, in <module>
│11:00:04 │ python: stdout/stderr (?): from OpenSSL._util import (
│11:00:04 │ python: stdout/stderr (?): File
│ │ "/usr/lib/python3.12/site-packages/OpenSSL/_util.py", line 6, in <module>
│11:00:04 │ python: stdout/stderr (?): from
│ │ cryptography.hazmat.bindings.openssl.binding import Binding
│11:00:04 │ python: stdout/stderr (?): File "/usr/lib/python3.12/site-packages/cryptograp
│ │ hy/hazmat/bindings/openssl/binding.py", line 15, in <module>
│11:00:04 │ python: stdout/stderr (?): from cryptography.exceptions import
│ │ InternalError
│11:00:04 │ python: stdout/stderr (?): File
│ │ "/usr/lib/python3.12/site-packages/cryptography/exceptions.py", line 9, in
│ │ <module>
│11:00:04 │ python: stdout/stderr (?): from cryptography.hazmat.bindings._rust import
│ │ exceptions as rust_exceptions
│11:00:04 │ python: stdout/stderr (?): ImportError: PyO3 modules do not yet support
│ │ subinterpreters, see https://github.com/PyO3/pyo3/issues/576
│11:00:04 =!= │ python: unable to parse file
│ │ "/home/aissy/.local/share/weechat/python/matrix.py"
I don't usually mess with python related stuff, so usually let pacman take care of it for software I use that depends on the python interpreter or libraries. Looking up on the web to avail, I'm pretty clueless as to what is here wrong and as to where I should look for a fix.
The error message directs to this issue https://github.com/PyO3/pyo3/issues/576 back from 2019; then to look further up to an open tracking thread from 2023.
I don't know what PyO3 is and how it's tied to the system. It mentions a "ImportError being raised if a module using PyO3 is initialized more than once per interpreter process" in the issue thread. It thus seems to me that something on my system with a running python interpreter process is using pyo3 but I'm not sure where to find what's running it and verify if that is indeed the case.
I might also assume my python library installation is somehow broken or outdated. But then, if this is something still not supported, how does other arch users use weechat-matrix at all?
Offline