Trouble with libolm on debian stable
I'm trying to install on debian stable. For libolm, I followed the instructions here and everything appears to have gone well. By which I mean, I got through the make and test steps without errors.
In any case, when I run pip install -r requirements.txt I am met with this error. Any idea what I can do to resolve it? Anything else I can check for to make sure the libolm build went well and things are in the right place?
ERROR: Command errored out with exit status 1:
command: /home/.../anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3dov1hgs/python-olm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3dov1hgs/python-olm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-h9ow52_i --python-tag cp37
cwd: /tmp/pip-install-3dov1hgs/python-olm/
Complete output (31 lines):
make: *** No rule to make target '../include/olm/olm.h', needed by 'include/olm/olm.h'. Stop.
/home/.../anaconda3/lib/python3.7/site-packages/cffi/cparser.py:150: UserWarning: String literal found in cdef() or type source. String literals are ignored here, but you should remove them anyway because some character sequences confuse pre-parsing.
warnings.warn("String literal found in cdef() or type source. "
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/olm
copying olm/__init__.py -> build/lib.linux-x86_64-3.7/olm
copying olm/__version__.py -> build/lib.linux-x86_64-3.7/olm
copying olm/pk.py -> build/lib.linux-x86_64-3.7/olm
copying olm/sas.py -> build/lib.linux-x86_64-3.7/olm
copying olm/_finalize.py -> build/lib.linux-x86_64-3.7/olm
copying olm/session.py -> build/lib.linux-x86_64-3.7/olm
copying olm/_compat.py -> build/lib.linux-x86_64-3.7/olm
copying olm/group_session.py -> build/lib.linux-x86_64-3.7/olm
copying olm/account.py -> build/lib.linux-x86_64-3.7/olm
copying olm/utility.py -> build/lib.linux-x86_64-3.7/olm
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.7/_libolm.c'
creating build/temp.linux-x86_64-3.7
building '_libolm' extension
creating build/temp.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/temp.linux-x86_64-3.7
gcc -pthread -B /home/.../anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/.../anaconda3/include/python3.7m -c build/temp.linux-x86_64-3.7/_libolm.c -o build/temp.linux-x86_64-3.7/build/temp.linux-x86_64-3.7/_libolm.o -I../include
build/temp.linux-x86_64-3.7/_libolm.c:493:18: fatal error: olm/olm.h: No such file or directory
#include <olm/olm.h>
^~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for python-olm
You probably need to sudo make install in the olm build directory.
@kp9001 Are you sure you have libolm3? I needed to install https://packages.debian.org/buster-backports/libolm-dev and https://packages.debian.org/buster-backports/libolm3 from backports.