Closed ghost closed 3 years ago
I have the libolm-dev
package installed, too.
Nevermind I think I can debug this.
Ok, I'm still stuck. Here's my problem:
Running setup.py install for python-olm ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jb85v7c8/python-olm_63eab5ae76d34a7da59f99c105165437/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jb85v7c8/python-olm_63eab5ae76d34a7da59f99c105165437/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wlfvvfbf/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/lcoogan/.local/include/python3.7m/python-olm
cwd: /tmp/pip-install-jb85v7c8/python-olm_63eab5ae76d34a7da59f99c105165437/
Complete output (29 lines):
make: *** No rule to make target '../include/olm/olm.h', needed by 'include/olm/olm.h'. Stop.
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/olm
copying olm/account.py -> build/lib.linux-armv7l-3.7/olm
copying olm/__version__.py -> build/lib.linux-armv7l-3.7/olm
copying olm/utility.py -> build/lib.linux-armv7l-3.7/olm
copying olm/sas.py -> build/lib.linux-armv7l-3.7/olm
copying olm/group_session.py -> build/lib.linux-armv7l-3.7/olm
copying olm/session.py -> build/lib.linux-armv7l-3.7/olm
copying olm/_compat.py -> build/lib.linux-armv7l-3.7/olm
copying olm/_finalize.py -> build/lib.linux-armv7l-3.7/olm
copying olm/__init__.py -> build/lib.linux-armv7l-3.7/olm
copying olm/pk.py -> build/lib.linux-armv7l-3.7/olm
running build_ext
generating cffi module 'build/temp.linux-armv7l-3.7/_libolm.c'
creating build/temp.linux-armv7l-3.7
building '_libolm' extension
creating build/temp.linux-armv7l-3.7/build
creating build/temp.linux-armv7l-3.7/build/temp.linux-armv7l-3.7
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c build/temp.linux-armv7l-3.7/_libolm.c -o build/temp.linux-armv7l-3.7/build/temp.linux-armv7l-3.7/_libolm.o -I../include
build/temp.linux-armv7l-3.7/_libolm.c:573:18: fatal error: olm/pk.h: No such file or directory
#include <olm/pk.h>
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jb85v7c8/python-olm_63eab5ae76d34a7da59f99c105165437/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jb85v7c8/python-olm_63eab5ae76d34a7da59f99c105165437/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wlfvvfbf/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/lcoogan/.local/include/python3.7m/python-olm Check the logs for full command output.
I have /usr/include/libolm
though.
Figured it out with the help of user.
I'm running into a similar issue. How did you fix this?
I'm running into a similar issue. How did you fix this?
I thought I fixed it. You should look at this. I haven't had the chance to try it myself since I messed up my apt sources and I'm trying to get that under control.
I ran into this same/similar problem on Ubuntu after installing the libolm-dev from their repos. I resolved it by using Matrix's OLM (https://gitlab.matrix.org/matrix-org/olm), building and installing (including the libs).
cmake . -Bbuild
cmake --build build
make test
make install
Also needed to add the installed lib path to LD_LIBRARY_PATH
, so weechat could access it. (Though this maybe os/distro specific)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
This issue seems to be exclusive to Debian for me, since everything works fine on fedora. What happens is this: