Open VicVer09 opened 5 years ago
+1, similar circumstance. Upgrade/rebuild of OS from 16.04 to 18.04 LTS, python 3.6.8 , working my way through getting my app up back to a running state, and got this error on the new install.
Got the same error, working now by adding this line url=url+"/Languages" in _get_root()
Hi, has anyone been able to solve this? Getting the same issue.
@skure can you explain a little more
Edit init.py around line 315 which in my system is ~/.local/lib/python3.6/site-packages/language_check/init.py
line 315: @classmethod def _get_root(cls, url, data=None, num_tries=2): url=url+"/Languages" for n in range(num_tries):
Adding that line seemed to get my instance to start working Let us know if that helps.
@kinoc it worked perfectly thanks =)
@kinoc didn't work for me... Any alternative solution out there?
Hi! Since this project has been abandoned, I started a new fork over at https://github.com/jxmorris12/language_tool_python.
My version supports new versions of Java and LanguageTool. language-check
is stuck on Java 8 and LanguageTool 3.2; latest versions are Java 14 and LanguageTool 4.9!
I'm happy to help you with your issue if you raise it over at my repository! Thanks!
I faced the same issue and I removed the existing Java Installation. And instead installed Java 8 and this worked perfectly fine for me then.
sudo apt-get purge default-jdk
sudo apt-get autoremove
sudo apt update
sudo apt install openjdk-8-jdk openjdk-8-jre
Many thanks to you guys.
Managed to make this package to work with the version 3.2 of the Java package "Language Tool"
Edit init.py around line 315 which in my system is ~/.local/lib/python3.6/site-packages/language_check/init.py
line 315: @classmethod def _get_root(cls, url, data=None, num_tries=2): url=url+"/Languages" for n in range(num_tries):
Adding that line seemed to get my instance to start working Let us know if that helps.
It worked for me !! thanks
Edit init.py around line 315 which in my system is ~/.local/lib/python3.6/site-packages/language_check/init.py
line 315: @classmethod def _get_root(cls, url, data=None, num_tries=2): url=url+"/Languages" for n in range(num_tries):
Adding that line seemed to get my instance to start working Let us know if that helps.
It worked for me,too. :D
Running on ubuntu18.04. Reinstalled OS a week ago and tried to use language tool only to keep getting the same error.
Installed language tool using upgraded pip
pip install --user --upgrade language-check
`Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information.
`