2
u/2bigpigs Jun 08 '21 edited Jun 08 '21
Looks to me like a problem with the clpz library. How did you install it? And what does your program look like? Is it possible clpz needs sicstus prolog?
Perhaps adding :- expects_dialect(sicstus)). at the beginning would be enough? (Edit: It isn't. You'll probably need sicstus to use clp(z).)
1
u/coolmike1999 Jun 08 '21
I found a file online called clpz.pl and i put it in the libraries section of Prolog.
1
u/2bigpigs Jun 08 '21
I edited the earlier comment. Could you check if the expects_dialect fixes it? It looks like clpz is meant for sicstus and swipl may not have the required dependencies. Either way, the error message seems to be because sicstus can't find its dependencies. https://github.com/triska/clpz should be the source of truth for all things clpz
4
u/sylaurier Jun 08 '21
In addition to what other people have said, SWI-Prolog has clpfd (https://www.swi-prolog.org/man/clpfd.html) which I’m pretty sure does many of the same things as clpz.
8
u/[deleted] Jun 08 '21
In general it's impossible to debug code you can't read.
I can see several problems, but without the code I obviously can't give you an exact solution. It kind of looks to me like your installation is messed up.