On MacOS 15.7.4 with SWI 10.0.2 from brew.
I am building a python virtual environment based on poetry (I am not sure this is relevant).
The project file pulls JANUS SWI from git:
"janus-swi @ git+https://github.com/SWI-Prolog/packages-swipy.git"
But when I try to run my system, I am getting this error:
File "/Users/rpg/Library/Caches/pypoetry/virtualenvs/legend-L1facsQ6-py3.12/lib/python3.12/site-packages/janus_swi/janus.py", line 63, in <module>
import janus_swi._swipl as _swipl
ImportError: dlopen(/Users/rpg/Library/Caches/pypoetry/virtualenvs/legend-L1facsQ6-py3.12/lib/python3.12/site-packages/janus_swi/_swipl.cpython-312-darwin.so, 0x000A): Library not loaded: /opt/homebrew/opt/swi-prolog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib
Referenced from: <2647531B-1255-31C9-8A36-16F470A6B154> /Users/rpg/Library/Caches/pypoetry/virtualenvs/legend-L1facsQ6-py3.12/lib/python3.12/site-packages/janus_swi/_swipl.cpython-312-darwin.so
Reason: tried: '/opt/homebrew/opt/swi-prolog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/swi-prolog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/opt/homebrew/opt/swi-prolog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/opt/homebrew/Cellar/swi-prolog/10.0.2/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/swi-prolog/10.0.2/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/opt/homebrew/Cellar/swi-prolog/10.0.2/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file)
I am not sure how _swipl.cpython-312-darwin.so is built, downloaded, or otherwise installed, so I don’t know how to get it to reference the proper libswipl version.