Janus and Python venv

Sorry for not providing details.

Yeah, I was referring to the SWI-Prolog library and my setup is calling python code from prolog. I’m on Ubuntu 22.04.

The issue was janus library didn’t use the conda environment that was active and was using the python binary under /usr/bin. Anyways, I was able to resolve the issue using the suggestions in this thread. Essentially, building SWI-Prolog from the source and setting -DPython_ROOT_DIR when running cmake.

As a side-effect, building SWI-Prolog from the source resulted in losing REPL functionalities such as going through previously run history via Up/Down keys and tab completion.