Note that this installs nio without end-to-end encryption support. For e2ee support, python-olm is needed which requires the libolm C library (version 3.x). On Debian and Ubuntu one can use apt-get to install package libolm-dev. On Fedora one can use dnf to install package libolm-devel. On MacOS one can use brew to install package libolm. Make sure version 3 is installed.
After libolm has been installed, the e2ee enabled version of nio can be installed using pip:
$ pip install matrix-nio[e2e]
нужен libolm
делаю cогласно
get clone https://gitlab.matrix.org/matrix-org/olm.git
cd olm
mkdir build
cmake . -Bbuild
cmake --build build
cd build/tests
ctest .
тесты завершаются без ошибок - passed
потом устанавливаю:
pip install python-olm
pip install matrix-nio[e2e]
Все без ошибок:
но когда запускаю какой нибудь код
типа import olm, или import nio
import olm
File "C:\Users\Nelson\AppData\Local\Programs\Python\Python38\lib\site-packages\olm\__init__.py", line 24, in
from .utility import ed25519_verify, OlmVerifyError, OlmHashError, sha256
File "C:\Users\Nelson\AppData\Local\Programs\Python\Python38\lib\site-packages\olm\utility.py", line 37, in
from _libolm import ffi, lib # type: ignore
ImportError: DLL load failed while importing _libolm: Не найден указанный модуль.
Подскажите может с билденной библиотекой нужно что то делать ?