-
Notifications
You must be signed in to change notification settings - Fork 58
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
Error loading shared library libhunspell.so: No such file or directory #66
Comments
This may be related to the arm64-workaround that's in place (see #15 and #53 for more information). I will try to reproduce your issue on my own raspberry PI. |
I have it reproduced. I do need some time to figure out how to fix this. I'll get back to you asap. |
Hi @starapo7348 and @tivaliy (#67), A fix has been merged and is released in |
Hi @Erikvl87 , thank you for your time and hard work. Seems it works for me fine. The only thing that I wanted to ask you. I faced with another issue (maybe even not related to Docker image itself, but to LanguageTool configuration). So here is example of making API request to the public API with language curl -X POST -d "text=Ok." -d "language=auto" https://api.languagetool.org/v2/check
{"software":{"name":"LanguageTool","version":"6.1-SNAPSHOT","buildDate":"2023-03-15 17:45:09 +0000","apiVersion":1,"premium":true,"premiumHint":"You might be missing errors only the Premium version can find. Contact us at support<at>languagetoolplus.com.","status":""},"warnings":{"incompleteResults":false},"language":{"name":"English (US)","code":"en-US","detectedLanguage":{"name":"English (US)","code":"en-US","confidence":0.099,"source":"ngram"}},"matches":[],"sentenceRanges":[[0,3]]} but I got timout when running the same request to a locally runing LanguageTool instance: curl -X POST -d "text=Ok." -d "language=auto" http://localhost:8010/v2/check --max-time 10
curl: (28) Operation timed out after 10003 milliseconds with 0 bytes received |
Great that it is not crashing anymore for you, @tivaliy. I'll also await the original issue author @starapo7348 before closing down this ticket.
Hunspell performance is very slow, especially the first request. On my Raspberry Pi 4, the first request took 30 to 40 seconds. After that, things got a bit faster for me. I would propose that you extend the timeout for your first request (
Source: https://dev.languagetool.org/hunspell-support.html If you have other questions regarding this matter, please open up a new ticket here if you think it is Docker related, or here if it is related to LanguageTool itself. |
Looks good now. :) It did not crash anymore. Thanks @Erikvl87 for fixing the issue. Nice work.
You can close the issue now. Another one fixed! :) |
I am trying to use the languagetool to check the spelling in a webform (language is de-de). Spelling mistake deise -> diese. The result is the following server error:
System: Raspberry PI4 arm64; Linux 6.0.0-5-arm64 #1 SMP Debian 6.0.10-2 (2022-12-01) aarch64 GNU/Linux
Docker Image: image: erikvl87/languagetool:latest
What's wrong here? Why is libhunspell.so not loaded? It is present in /LanguageTool/libs/hunspell.jar
The text was updated successfully, but these errors were encountered: