If I do pip install pyswip -U
I still see the old version. My patch is actually irrelevant, it merely makes finding the shared object more robust for future versions. The one that really matters is Support SWI-Prolog versions > 8.5.2 by david-r-cox · Pull Request #133 · yuce/pyswip · GitHub
And the simple quick fix is to find core.py
in the package and replace PL_version
with PL_version_info
.
These may be unrelated to your problem though. It seems you can create an instance of Prolog. Without some context on what is supposed to happen I can’t comment on these errors (and anyway, my Python knowledge is not much).