SWI-Prolog / packages-swipy

Python interface for SWI-Prolog
41 stars 5 forks source link

Error when run examples/trains.py #3

Closed dxbdxx closed 1 year ago

dxbdxx commented 1 year ago

janus_swi/janus.py", line 186, in next if rc == False or rc["truth"] == False: KeyError: 'truth'

JanWielemaker commented 1 year ago

Thanks for reporting. Works fine if you re-install the janus_swi Python package using pip (using the latest git version of this repo). The success/failure/undefined key for the result dict changed from status to truth as a result of standardization discussions. In the details, Janus is a moving target as long as the dust of these discussions has not settled. We are close!