Hi. I did installed a library for python named pyswip-0.2.2 but when I run a python example with the next lines, the python interpreter, it throw me the following error: "Error en el bus". The code lines are:
from pyswip.prolog import Prolog from pyswip.easy import getList, registerForeign N = 3 # Number of disks def main(): def notify(t): print "move disk from %s pole to %s pole." % tuple(t) notify.arity = 1 prolog = Prolog() registerForeign(notify) prolog.consult("hanoi.pl") list(prolog.query("hanoi(%d)" % N)) if __name__ == "__main__": main() where "hanoy.pl" is a program with python code. Any solution for this error?. Thanks. -- http://mail.python.org/mailman/listinfo/python-list