Questions tagged [clipspy]

For questions related to the embedding of the CLIPS engine in Python.

CLIPSPy is a FFI based binding module to embed the CLIPS expert system engine in Python.

35 questions
0
votes
1 answer

Programmatically modify a fact slot using ClipsPy

How to modify a fact of a template in CLIPS using ClipsPy. I have tried the reassigning slot value and sending modify in clips.build routine, (see py_modify function below) which did not work. This is the .clp file ;; KB.clp (deftemplate t …
greenlantern
  • 374
  • 1
  • 3
  • 15
0
votes
1 answer

Installing clipspy on linux build/temp.linux-x86_64-3.6/_clips.c:523:19: fatal error: clips.h: No such file or directory #include

can someone give a step by step procedure on how to install clips and then clipspy in a linux environment. pip install clipspy does not works for me as pip is not allowed in my organization. I need to build from source. I tried python setup.py…
greenlantern
  • 374
  • 1
  • 3
  • 15
0
votes
2 answers

Pyclips: Error when setting a clips class instance multislot to [ ]

I want a multislot of a class instance to become an empty list. I am not sure if there is a bug in clips or pyclips, or if I am doing it wrong. import clips C = clips.BuildClass("C", "(is-a USER)(multislot s)") i = clips.BuildInstance("test1",…
langlauf.io
  • 3,009
  • 2
  • 28
  • 45
-1
votes
1 answer

How can you vary the facts using lists in clipspy

I have tried to vary the facts using lists and a cycle for but I have not succeeded, The way I tried it is to create a list for each variable in the template and then apply an cycle for but it didn't work. The example python code in which I have…
1 2
3