Package Details: weechat-matrix 0.3.0-18

Git Clone URL: https://aur.archlinux.org/weechat-matrix.git (read-only, click to copy)
Package Base: weechat-matrix
Description: WeeChat Matrix protocol script written in Python
Upstream URL: https://github.com/poljar/weechat-matrix
Licenses: ISC
Submitter: gromit
Maintainer: loacker
Last Packager: loacker
Votes: 1
Popularity: 0.004352
First Submitted: 2024-03-20 18:14 (UTC)
Last Updated: 2025-01-04 22:09 (UTC)

Latest Comments

AndyRTR commented on 2025-01-04 20:26 (UTC)

Please include https://github.com/poljar/weechat-matrix/pull/368 (needs a small fix in line 226). That way we can drop python-future/python3.12 :)

loacker commented on 2024-12-23 11:18 (UTC)

The plugin is currently broken, and I'm researching this problem to see if there is a fix.

https://github.com/poljar/weechat-matrix/issues/357

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

loacker commented on 2024-12-17 13:37 (UTC)

I have since added a patch [1] to enable it to build. I'll see what I can do to report it upstream.

[1] 0004-fix-tests-module-webcolors-has-no-attribute-HTML4_HE.patch

AndyRTR commented on 2024-12-17 07:33 (UTC) (edited on 2024-12-17 07:34 (UTC) by AndyRTR)

Python-future has been removed by Fedora rawhide. Only removing the dependency from the package won't solve it because weechat-matrix acutally depends on it and will fail to start. Please someone bring it to the github tracker. Even if it's almost dead maybe someone has a solution to get it back working.

The webcolor test failure is expected now. Disable tests for now. See also https://github.com/poljar/weechat-matrix/issues/364

micwoj92 commented on 2024-12-16 22:19 (UTC)

Check fails:

============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
rootdir: /build/weechat-matrix/src/weechat-matrix-0.3.0
configfile: pyproject.toml
plugins: hypothesis-6.118.7
collected 9 items / 1 error

==================================== ERRORS ====================================
_____________________ ERROR collecting tests/color_test.py _____________________
tests/color_test.py:23: in <module>
    first_16_html_colors = list(webcolors.HTML4_HEX_TO_NAMES.values())
E   AttributeError: module 'webcolors' has no attribute 'HTML4_HEX_TO_NAMES'
=========================== short test summary info ============================
ERROR tests/color_test.py - AttributeError: module 'webcolors' has no attribu...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.83s ===============================
==> ERROR: A failure occurred in check().
    Aborting...

ilf0 commented on 2024-05-22 13:18 (UTC) (edited on 2024-05-28 10:10 (UTC) by ilf0)

Please add python-future as dependency, as this won't run without it.

Update: Thanks! https://aur.archlinux.org/cgit/aur.git/commit/?h=weechat-matrix&id=0e5a13aad5c6e9f07c7681dcb43c9e0a2a9d7d61