Change:
done wrapProgram $out/share/recoll/filters/rclaudio.py  --prefix PYTHONPATH : $PYTHONPATH <ins> wrapProgram $out/share/recoll/filters/rcljoplin.py  --prefix PYTHONPATH : $out/${python3Packages.python.sitePackages} </ins> wrapProgram $out/share/recoll/filters/rclimg  --prefix PERL5LIB : "${with perlPackages; makeFullPerlPath [ ImageExifTool ]}" '' + lib.optionalString stdenv.isLinux ''

Discussion:
recollindex fails after updating from nixos-23.11 to nixos-24.05: call recollindex is expected to finish without fatal errors I suppose this to be a regression introduced by un-double-wrapping via , in particular system: host os: multi-user?: sandbox: version: nixpkgs:
the wrapper around recollindex just adds various utilities to the , which it still does, as seen by the wrapper output below, so it seems unlikely that that is the issue given they are getting the same PATH. there were also 4 version updates from 23.11 console $ sed -n '/^# ---/,/^# ---/p' ./result/bin/recollindex #
makeCWrapper '/nix/store/58j9qba2bb2ingf5kkwfbc8xnra4rxs9-recoll-1.37.5/bin/.recollindex-wrapped'  --inherit-argv0  --prefix 'PATH' ':' '/nix/store/6ba3q26hrqyarpmi47mygf87fmdzmnp5-antiword-0.37/bin:/nix/store/a2ffqcqzbp8k4fmkyhpjq2km0i9wr8d8-gawk-5.2.2/bin:/nix/store/6xx0ksn6mpahilisgaisfmvh0yhlbzdg-catdvi-0.14/bin:/nix/store/7vyxj1q8v4i8vf6hxq1bmi8a18rd9w55-catdoc-0.95/bin:/nix/store/fsykrk871ssaaff0rg5zl42impld06s9-djvulibre-3.5.28-bin/bin:/nix/store/fsykrk871ssaaff0rg5zl42impld06s9-djvulibre-3.5.28-bin/bin:/nix/store/wy37jk2hirzqzx0666w1849kjdgzdam6-gnugrep-3.11/bin:/nix/store/458v8qq05zcp85w3snfp3biy4vmp65x0-groff-1.23.

0/bin:/nix/store/hragmx5p3izmwinv4441hj5706sxy4xs-gzip-1.13/bin:/nix/store/52ihr7z60rwndlw1gmdamygzbwmwclnc-glibc-iconv-2.39/bin:/nix/store/h89fvi55ybiakp61zpqv6zy5gd03969j-poppler-utils-24.02.0/bin:/nix/store/rlpy8ckhqjpp7dyj2fd5b5v9zzjkgicn-perl-5.38.2-env/bin:/nix/store/1m4lw66ridcyibpvay4j522xgvnd6n7y-ghostscript-with-X-10.02.1/bin:/nix/store/4cps736z7in3d37qc801lwv9z0ib67ps-gnused-4.9/bin:/nix/store/4m4vnjdy44s4sb8hlv4qsph492zz3rly-gnutar-1.35/bin:/nix/store/4kgabdrkwv4q8nm9sa8rg4rnqwbcmrln-unrtf-0.21.10/bin:/nix/store/0pqghzg1n478hrxm4zsd18nj350xiw00-untex-1.3/bin:/nix/store/q1fvikg18dqqx8n4q8g3la49m0virb3h-unzip-6.0/bin:/nix/store/d49nw26mq84azr96117q3yy8mp0a8fy4-libwpd-0.10.3/bin:/nix/store/7vyxj1q8v4i8vf6hxq1bmi8a18rd9w55-catdoc-0.95/bin:/nix/store/dx7y7a1cim7wd09ps3kq3jcgj0j8qvgx-libxslt-1.1.39-bin/bin'  --prefix 'QTPLUGINPATH' ':' '/nix/store/f538b2s5l25mjnzgb2jfscynp28liy0v-qtbase-5.15.

12-bin/lib/qt-5.15.12/plugins'  --prefix 'QTPLUGINPATH' ':' '/nix/store/nyz3438vcpyslbps4py9yc1v06x45md4-qtsvg-5.15.12-bin/lib/qt-5.15.12/plugins'  --prefix 'QTPLUGINPATH' ':' '/nix/store/rw11b5mksa1j2cd7zcv8hjsh18nxy3zs-qtdeclarative-5.15.12-bin/lib/qt-5.15.12/plugins'  --prefix 'NIXPKGSQT5QMLIMPORTPATH' ':' '/nix/store/rw11b5mksa1j2cd7zcv8hjsh18nxy3zs-qtdeclarative-5.15.12-bin/lib/qt-5.15.12/qml'  --prefix 'QTPLUGINPATH' ':' '/nix/store/mjnq8lnix0lx0mb6a1m56027xg8i4w9d-qttools-5.15.12-bin/lib/qt-5.15.12/plugins'  --prefix 'NIXPKGSQT5QMLIMPORTPATH' ':' '/nix/store/4yc8qzgvqbmw3vgyplc03zf9lr9jaig5-qtquickcontrols-5.15.12/lib/qt-5.15.12/qml'  --prefix 'QTPLUGINPATH' ':' '/nix/store/3fm6ymc39p706940p5m44rr47rf69xhb-qtwayland-5.15.12-bin/lib/qt-5.15.12/plugins'  --prefix 'NIXPKGSQT5QMLIMPORTPATH' ':' '/nix/store/3fm6ymc39p706940p5m44rr47rf69xhb-qtwayland-5.15.12-bin/lib/qt-5.15.12/qml'  --prefix 'XDGDATADIRS' ':' '/nix/store/58j9qba2bb2ingf5kkwfbc8xnra4rxs9-recoll-1.37.5/share' #
not sure how to trigger the issue either -- on linux if i run from an empty directory it seems fine.

I see. I'll try to make a reproducible case and/or bisect. Back soon.
Thank you for your quick response. I found out that both the 23.11 and the 24.05 variant run fine if run like and that both variants fail if started in a 24.05 environment via system path . I have no python in my system path. Also the error is not reproducible with . Minimal reproducible setting: Honestly I do not even know what's the outcome of running or missing