pip Install Fails at python-olm Dependency
saltybearplusstick opened this issue · 3 comments
Command used:
pip3 install matrix-commander
Issue: Install fails at dependency python-olm with error
make: *** No rule to make target '../include/olm/olm.h', needed by 'include/olm/olm.h'. Stop.
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is
deprecated. Use build and pip and other standards-based tools.
Installing python-olm separately with pip also results in same errors.
See here for full output:
pipInstallmatrixCommanderOutput.txt
I am reposting part of your output file (I prefer it inline):
Using legacy 'setup.py install' for python-olm, since package 'wheel' is not installed.
Installing collected packages: multidict, frozenlist, yarl, python-socks, async-timeout, aiosignal, pyrsistent, hyperframe, hpack, aiohttp, unpaddedbase64, pycryptodome, logbook, jsonschema, h2, h11, future, aiohttp-socks, aiofiles, pytz, python-olm, peewee, matrix-nio, cachetools, atomicwrites, uuid, python-magic, notify2, datetime, asyncio, argparse, matrix-commander
Running setup.py install for logbook ... done
Running setup.py install for future ... done
Running setup.py install for python-olm ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0v6a16s3/python-olm_48c880a22c104bb0860066398e1ab03a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0v6a16s3/python-olm_48c880a22c104bb0860066398e1ab03a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-90j85jzh/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/dfischer/.local/include/python3.10/python-olm
cwd: /tmp/pip-install-0v6a16s3/python-olm_48c880a22c104bb0860066398e1ab03a/
Complete output (31 lines):
make: *** No rule to make target '../include/olm/olm.h', needed by 'include/olm/olm.h'. Stop.
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/olm
copying olm/utility.py -> build/lib.linux-x86_64-3.10/olm
copying olm/session.py -> build/lib.linux-x86_64-3.10/olm
copying olm/sas.py -> build/lib.linux-x86_64-3.10/olm
copying olm/pk.py -> build/lib.linux-x86_64-3.10/olm
copying olm/group_session.py -> build/lib.linux-x86_64-3.10/olm
copying olm/account.py -> build/lib.linux-x86_64-3.10/olm
copying olm/_finalize.py -> build/lib.linux-x86_64-3.10/olm
copying olm/_compat.py -> build/lib.linux-x86_64-3.10/olm
copying olm/__version__.py -> build/lib.linux-x86_64-3.10/olm
copying olm/__init__.py -> build/lib.linux-x86_64-3.10/olm
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.10/_libolm.c'
creating build/temp.linux-x86_64-3.10
building '_libolm' extension
creating build/temp.linux-x86_64-3.10/build
creating build/temp.linux-x86_64-3.10/build/temp.linux-x86_64-3.10
gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.10 -c build/temp.linux-x86_64-3.10/_libolm.c -o build/temp.linux-x86_64-3.10/build/temp.linux-x86_64-3.10/_libolm.o -I../include
build/temp.linux-x86_64-3.10/_libolm.c:50:14: fatal error: pyconfig.h: No such file or directory
50 | # include <pyconfig.h>
| ^~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0v6a16s3/python-olm_48c880a22c104bb0860066398e1ab03a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0v6a16s3/python-olm_48c880a22c104bb0860066398e1ab03a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-90j85jzh/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/dfischer/.local/include/python3.10/python-olm Check the logs for full command output.
Certainly an issue with the olm
library, not with matrix-commander
.
What OS?
A few ideas:
- create an issue on
olm
informing them - did you do the required pre-installation steps? See https://pypi.org/project/matrix-commander/. See documentation? Such as
sudo apt install libolm-dev
, etc. Was that done? - install wheel
- search other issues here for pattern
olm
, I think this issue has been raised before. See what you can learn from there.
Since this is extremely unlikely a m-c issue, closing this. Please reopen if need be.