Installing Python recoll API in GHA workflows after `uses: actions/setup-python`
Running python -c 'from recoll import recoll'
in GHA on ubuntu-latest
works fine if I just sudo apt-get install python3-recoll
or sudo apt-get install recoll
.
However, if I try to pick a specific version of Python using actions/setup-python
I get the following error:
/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/recoll/recoll.py:22: in <module>
from ._recoll import *
E ImportError: librecoll-1.35.0.so: cannot open shared object file: No such file or directory
I've also tried building from source instead but I cannot find the combination of flags that would make this work. I've tried --enable-publiclib
and --prefix=/usr
for instance.
Is it possible to make this work?