Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot install on ubuntu18.04 #13

Open
i-am-neo opened this issue Jun 21, 2024 · 0 comments
Open

cannot install on ubuntu18.04 #13

i-am-neo opened this issue Jun 21, 2024 · 0 comments

Comments

@i-am-neo
Copy link

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.

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 <Python.h>
^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant