You are not logged in.

#1 2017-03-29 22:14:38

mwillems
Member
Registered: 2014-08-09
Posts: 89

Recoll 1.23 not indexing pdfs or epubs (SOLVED)

After a recent upgrade to Recoll (from 1.22 to 1.23), Recoll started failing to index pdfs or epubs on two different machines.  Recoll's error counter increments when trying to index any pdfs or epubs, and then throws an "indexing failed" dialog at the end of the indexing session.  I tried reinstalling all the relevant helper programs (python-epub, pylzma, and poppler) with no effect, but reverting to recoll 1.22 results in everything indexing as normal.  That suggests it's a regression in version 1.23.

I wanted to ask if anyone else is experiencing this behavior before I file a bug against the package.

Last edited by mwillems (2017-04-14 16:00:53)

Offline

#2 2017-04-14 16:00:16

mwillems
Member
Registered: 2014-08-09
Posts: 89

Re: Recoll 1.23 not indexing pdfs or epubs (SOLVED)

Ok, there was some movement on this upstream.  For anyone else dealing with this issue, it's a side effect of Arch making python3 the system python (which is apparently unusual among linux distros?).  So several of recoll's helper scripts which specify /usr/bin/python expecting python2 fail when executed by python3.  Upstream is going to specify python2 in the next release, but that may be a while.  So meanwhile folks can work around by editing the relevant helper scripts in usr/share/recoll/filters to change the shebang on any failing scripts from /usr/bin/python to /usr/bin/python2.  I can confirm that works fine for the .epubs and .pdfs.

Offline

#3 2017-05-03 17:18:59

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Recoll 1.23 not indexing pdfs or epubs (SOLVED)

I guess you need to tell upstream, because of some filters in /usr/share/recoll/filters/ already have '#!/usr/bin/env python2'. There is no such patching in PKGBUILD.

Offline

#4 2017-05-18 07:40:17

aureooms
Member
Registered: 2016-05-26
Posts: 7

Re: Recoll 1.23 not indexing pdfs or epubs (SOLVED)

Here's how to fix it temporarily

sed 's:^#!/usr/bin/env python$:#!/usr/bin/env python2:g' -i /usr/share/recoll/filters/*
sed 's:^#!/usr/bin/python$:#!/usr/bin/env python2:g' -i /usr/share/recoll/filters/*

Last edited by aureooms (2017-05-18 07:44:15)

Offline

Board footer

Powered by FluxBB