-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: recoll's python module does not work out of the box #12576
Comments
Ping @JCGoran, @landfillbaby maybe you have some suggestions on how to handle this |
I think there is a slightly bigger issue here, which I've only realized afterwards (sorry about that, haven't made packages for termux before): namely, if you look at the manifest via
which, if I'm not mistaken, indicates that the Python lib is actually built for termux-packages/packages/unbound/build.sh Lines 32 to 44 in e0232d9
|
Missed that, the name is wrong indeed, file seems to be correct architecture though:
using |
Please make sure to always use |
The following is an explanation of commit 2c40a8f. In this specific case it turns out that the culprit is in termux-packages/packages/recoll/Makefile.in.patch Lines 7 to 8 in 2c40a8f
Also a workaround is needed for android/ndk#201: termux-packages/packages/recoll/python-recoll-setup.py.in.diff Lines 7 to 12 in 2c40a8f
(Commonly-used And finally it needs to disable Python 2: termux-packages/packages/recoll/Makefile.in.patch Lines 16 to 17 in 2c40a8f
termux-packages/packages/recoll/Makefile.in.patch Lines 23 to 24 in 2c40a8f
|
With the current revision (
From what I can tell, the following issues remain:
Note that even if I do all the above manually (fix path, copy
|
Could this be reopened? The Python module still doesn't work OOTB. |
Not reproducible for me. The command python -c "from recoll import recoll" exits normally. |
Would you please share the IMO that should have a new issue, instead of reusing once closed one. |
@JCGoran I believe that is another issue. Please open a new one. Thanks. |
Problem description
In #12497 recoll's python module was added to the package. It installs to
$PREFIX/lib/python3/dist-packages/recoll/
, but this directory is not part of PYTHONPATH in termux per default, giving an error unless the PYTHONPATH is modified:Either we should make our python package recognise the lib/python3/dist-packages folder (by setting PYTHONPATH in a profile script?), or we should make recoll install to
$PREFIX/lib/python3.X/site-packages
instead.Some related discussion was had in the PR to add termux-gui-pm by @tareksander.
What steps will reproduce the bug?
What is the expected behavior?
recoll should import without errors out of the box.
System information
termux-info:
The text was updated successfully, but these errors were encountered: