conda-forge / tesseract-feedstock

A conda-smithy repository for tesseract.
BSD 3-Clause "New" or "Revised" License
5 stars 17 forks source link

Installed tesseract cannot list installed models #62

Open stweil opened 3 months ago

stweil commented 3 months ago

Solution to issue cannot be found in the documentation.

Issue

tesseract --list-langs does not list the installed models (languages and scripts), but runs in an endless recursion (unless TESSDATA_PREFIX is set in the environment) if it was installed with conda or miniconda.

This is caused by the installation which modifies the installed files (see https://docs.conda.io/projects/conda-build/en/stable/resources/make-relocatable.html). While this works for C strings (char *), it fails for C++ std::string (see https://github.com/tesseract-ocr/tesseract/issues/4230).

Can this be fixed on the Conda side? If not: how is this handled in other software which gets installed with Conda and which also uses std::string?

Installed packages

# packages in environment at /opt/homebrew/Caskroom/miniconda/base:
#
# Name                    Version                   Build  Channel
[...]
tesseract                 5.3.4                he632f33_0    conda-forge
[...]

Environment info

not relevant
stweil commented 3 months ago

Other packages which also have or had issues because a std::string is patched: