Skip to content
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

Installed tesseract cannot list installed models #62

Open
1 task done
stweil opened this issue May 13, 2024 · 1 comment
Open
1 task done

Installed tesseract cannot list installed models #62

stweil opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@stweil
Copy link

stweil commented May 13, 2024

Solution to issue cannot be found in the documentation.

  • I checked 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 tesseract-ocr/tesseract#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 stweil added the bug Something isn't working label May 13, 2024
@stweil
Copy link
Author

stweil commented May 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant