Python interface (Janus) for Prolog 10?

Hi there, anyone successfully call Prolog 10 from Python using Janus?

Janus worked fine with Prolog 9.3, but after upgrading to Prolog 10.0.1, apparently it still tries to locate `/Applications/SWI-Prolog.app/Contents/Frameworks/libswipl.9.dylib`, which no longer exists.

Wonder if there is a quick fix for this? Thanks a lot!!

How did you install Prolog and Janus. Looks like you are running a Janus for the old version with the new version. Just re-installing should help then, a little depending on how it was installed in the first place.

Many thanks Jan!
I have reinstalled Janus (latest version 1.5.2), also rebooted MacOS, but the issue remains the same. Looks like some hidden setting that points to `…/libswipl.9.dylib` did not get updated by the reinstallation.
What other things I could try?

The link to the version 9 file comes from linking the Python plugin with an old version of SWI-Prolog. So, if you install Janus as PIP package from source (AFAIK there is no binary for MacOS), it somehow finds version 9 and links to that. If I recall well, it tries to run swipl to find the location and configuration of Prolog. So, make sure swipl runs the right version. Also make sure there are no left overs of the old Janus package.

Ah, you’re spot on!
Turns out it was because pip install janus-swi by default reused the cached Janus package instead of downloading a fresh one.
So I use pip cache purge to clear out everything, then pip install janus-swi again. Now all works perfectly!|
Thank you so much, Jan!