Open i-am-neo opened 5 months ago
Hello @JanWielemaker , looking to try out janus but running into trouble installing it. Python3.8 is installed on the machine but there is not a directory /usr/include/python3.8. Any workaround suggestions?
/usr/include/python3.8
Thank you.
pip install janus-swi Collecting janus-swi Using cached janus_swi-1.4.0.tar.gz (86 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: janus-swi Building wheel for janus-swi (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for janus-swi (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [31 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus_swi.py -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/init.py -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus.py -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/_find_swipl.py -> build/lib.linux-x86_64-cpython-38/janus_swi running egg_info writing janus_swi.egg-info/PKG-INFO writing dependency_links to janus_swi.egg-info/dependency_links.txt writing top-level names to janus_swi.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'janus_swi.egg-info/SOURCES.txt' writing manifest file 'janus_swi.egg-info/SOURCES.txt' copying janus/hash.c -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus.c -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus.pl -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/mod_swipl.c -> build/lib.linux-x86_64-cpython-38/janus_swi running build_ext building 'janus_swi._swipl' extension creating build/temp.linux-x86_64-cpython-38 creating build/temp.linux-x86_64-cpython-38/janus x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DPYTHON_PACKAGE=1 -I/usr/lib/swi-prolog/include -I/home/ubuntu/.virtualenvs/popper/include -I/usr/include/python3.8 -c janus/janus.c -o build/temp.linux-x86_64-cpython-38/janus/janus.o janus/janus.c:43:10: fatal error: Python.h: No such file or directory include ^~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
pip install janus-swi
Collecting janus-swi Using cached janus_swi-1.4.0.tar.gz (86 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: janus-swi Building wheel for janus-swi (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for janus-swi (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [31 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus_swi.py -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/init.py -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus.py -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/_find_swipl.py -> build/lib.linux-x86_64-cpython-38/janus_swi running egg_info writing janus_swi.egg-info/PKG-INFO writing dependency_links to janus_swi.egg-info/dependency_links.txt writing top-level names to janus_swi.egg-info/top_level.txt ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any reading manifest file 'janus_swi.egg-info/SOURCES.txt' writing manifest file 'janus_swi.egg-info/SOURCES.txt' copying janus/hash.c -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus.c -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/janus.pl -> build/lib.linux-x86_64-cpython-38/janus_swi copying janus/mod_swipl.c -> build/lib.linux-x86_64-cpython-38/janus_swi running build_ext building 'janus_swi._swipl' extension creating build/temp.linux-x86_64-cpython-38 creating build/temp.linux-x86_64-cpython-38/janus x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DPYTHON_PACKAGE=1 -I/usr/lib/swi-prolog/include -I/home/ubuntu/.virtualenvs/popper/include -I/usr/include/python3.8 -c janus/janus.c -o build/temp.linux-x86_64-cpython-38/janus/janus.o janus/janus.c:43:10: fatal error: Python.h: No such file or directory
^~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
Hello @JanWielemaker , looking to try out janus but running into trouble installing it.
Python3.8 is installed on the machine but there is not a directory
/usr/include/python3.8
. Any workaround suggestions?Thank you.