poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
963 stars 121 forks source link

Outdated nio dependency? #355

Closed oatsvine closed 1 year ago

oatsvine commented 1 year ago

I'm getting this error when loading the plugin after a make install.

         │6  19:01:54     | python: loading script "/home/user/.local/share/weechat/python/matrix.py"
         │7  19:01:55     | python: stdout/stderr (?): Traceback (most recent call last):
         │8  19:01:55     | python: stdout/stderr (?):   File "/home/user/.local/share/weechat/python/matrix.py", line 65, in <module>
         │9  19:01:55     | python: stdout/stderr (?):     from matrix.buffer import room_buffer_close_cb, room_buffer_input_cb
         │10 19:01:55     | python: stdout/stderr (?):   File "/home/user/.local/share/weechat/python/matrix/buffer.py", line 57, in <module>
         │11 19:01:55     | python: stdout/stderr (?):     from .config import RedactType, NewChannelPosition
         │12 19:01:55     | python: stdout/stderr (?):   File "/home/user/.local/share/weechat/python/matrix/config.py", line 61, in <module>
         │13 19:01:55     | python: stdout/stderr (?):     nio.logger_group.level = logbook.ERROR
         │14 19:01:55     | python: stdout/stderr (?):     ^^^^^^^^^^^^^^^^
         │15 19:01:55     | python: stdout/stderr (?): AttributeError: module 'nio' has no attribute 'logger_group'
         │16 19:01:55 =!= | python: unable to parse file "/home/user/.local/share/weechat/python/matrix.py"

I'm in the official matrix debian container, which install python 3.11.

poljar commented 1 year ago

Fixed by: https://github.com/poljar/weechat-matrix/pull/353.