Closed kenrestivo closed 2 years ago
Please update matrix-nio
, this is a duplicate of #284.
$ pip3 install -U matrix-nio
...
Requirement already satisfied: matrix-nio in ./.weechat/python/venv/lib/python3.9/site-packages (0.18.7)
It is already updated.
Are you sure weechat-matrix uses the version from /.weechat/python/venv/lib/python3.9/site-packages
?
The traceback seems to suggest that it does not use 0.18.7
, the line it's complaining about looks different in the latest release: https://github.com/poljar/matrix-nio/blob/master/nio/responses.py#L1697. If you git blame that line you'll se that it's part of 0.18.7
.
Aha, thanks! The key was I missed the symlink requirement that venv be in the source directory, not the .weechat directory.
i.e. I have symlinks:
/home/lken/.weechat/python:
total used in directory 16 available 30 GiB
drwxr-xr-x 4 lken lken 4096 Aug 17 20:40 .
drwxr-xr-x 9 lken lken 4096 Oct 16 19:51 ..
drwxr-xr-x 2 lken lken 4096 Aug 17 20:44 autoload
lrwxrwxrwx 1 lken lken 46 Jan 2 2021 matrix -> /home/localkens/misctech/weechat-matrix/matrix
lrwxrwxrwx 1 lken lken 47 Jan 2 2021 matrix.py -> /home/localkens/misctech/weechat-matrix/main.py
drwxr-xr-x 4 lken lken 4096 Aug 17 20:40 venv
I needed to put a symlink into the weechat-matrix source directory (weird!) to link back to the .weechat/python/venv
/home/localkens/misctech/weechat-matrix:
total used in directory 112 available 30 GiB
drwxr-xr-x 6 lken lken 4096 Oct 25 21:36 .
drwx------ 96 lken lken 12288 Oct 18 18:28 ..
drwxr-xr-x 2 lken lken 4096 Aug 17 20:41 contrib
-rw-r--r-- 1 lken lken 772 Jun 27 2020 Dockerfile
drwxr-xr-x 8 lken lken 4096 Oct 25 21:36 .git
-rw-r--r-- 1 lken lken 96 Jun 27 2020 .gitignore
-rw-r--r-- 1 lken lken 784 Jun 27 2020 LICENSE
-rw-r--r-- 1 lken lken 23939 Aug 17 20:41 main.py
-rw-r--r-- 1 lken lken 1007 Sep 10 2020 Makefile
drwxr-xr-x 3 lken lken 4096 Oct 16 18:48 matrix
-rw-r--r-- 1 lken lken 16177 Jun 27 2020 .pylintrc
-rw-r--r-- 1 lken lken 971 Aug 17 20:41 pyproject.toml
-rw-r--r-- 1 lken lken 11647 Oct 16 18:48 README.md
-rw-r--r-- 1 lken lken 196 Mar 15 2021 requirements.txt
drwxr-xr-x 2 lken lken 4096 Sep 10 2020 tests
-rw-r--r-- 1 lken lken 508 Jun 27 2020 .travis.yml
lrwxrwxrwx 1 lken lken 31 Oct 25 21:36 venv -> /home/lken/.weechat/python/venv
Not sure how to document this better than you already have done so (if tersely), but it is definitely a gotcha.
python 3.9.0+ weechat 3.0-1 weechat-matrix latest from git head abe85ed63b3726837eebaebaaef240ca0c9a4e7b commit