Closed ddrake-1 closed 3 years ago
To install clipspy
on MAC via pip you need to install CLIPS C libraries within the system first.
A better alternative is to use the Makefile and install it from the sources.
Closing this issue due to inactivity, please re-open if the problem persists.
Installation of clipspy using pip on MacOS 10.15 (Catalina) throws an error. Using command "python3 -m pip install clipspy" produces the following error: "/usr/local/include/clips.h:35:10: fatal error: 'setup.h' file not found". Full output below. Any advice would be welcome.
`Collecting clipspy Using cached clipspy-0.3.3.tar.gz (22 kB) Requirement already satisfied: cffi>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from clipspy) (1.14.5) Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from cffi>=1.0.0->clipspy) (2.20) Using legacy 'setup.py install' for clipspy, since package 'wheel' is not installed. Installing collected packages: clipspy Running setup.py install for clipspy ... error ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-install-0938nd9m/clipspy_349f10090e3049f59c3995983c6b0475/setup.py'"'"'; file='"'"'/private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-install-0938nd9m/clipspy_349f10090e3049f59c3995983c6b0475/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-record-g_kqqipt/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/clipspy cwd: /private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-install-0938nd9m/clipspy_349f10090e3049f59c3995983c6b0475/ Complete output (32 lines): fatal: not a git repository (or any of the parent directories): .git running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/clips copying clips/functions.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/facts.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/agenda.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/error.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/init.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/clips_build.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/common.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/environment.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/modules.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/classes.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/router.py -> build/lib.macosx-10.9-x86_64-3.8/clips copying clips/data.py -> build/lib.macosx-10.9-x86_64-3.8/clips running build_ext generating cffi module 'build/temp.macosx-10.9-x86_64-3.8/_clips.c' creating build/temp.macosx-10.9-x86_64-3.8 building '_clips' extension creating build/temp.macosx-10.9-x86_64-3.8/build creating build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Iclips_source -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c build/temp.macosx-10.9-x86_64-3.8/_clips.c -o build/temp.macosx-10.9-x86_64-3.8/build/temp.macosx-10.9-x86_64-3.8/_clips.o In file included from build/temp.macosx-10.9-x86_64-3.8/_clips.c:600: /usr/local/include/clips.h:35:10: fatal error: 'setup.h' file not found
include "setup.h"
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-install-0938nd9m/clipspy_349f10090e3049f59c3995983c6b0475/setup.py'"'"'; file='"'"'/private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-install-0938nd9m/clipspy_349f10090e3049f59c3995983c6b0475/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/c6/5f3b62j10pj80nf230ypjwvnhrnrdc/T/pip-record-g_kqqipt/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/clipspy Check the logs for full command output. `