myint / language-check

Python wrapper for LanguageTool grammar checker
https://pypi.python.org/pypi/language-check
GNU Lesser General Public License v3.0
326 stars 102 forks source link

Issue with Linux installation #83

Closed pauloney closed 2 months ago

pauloney commented 2 months ago

I tried the simple (below) on Ubuntu 22.04, to no avail:

$ sudo pip install --upgrade language-check
[sudo] password for paulo: 
Collecting language-check
  Downloading language-check-1.1.tar.gz (33 kB)
Building wheels for collected packages: language-check
  Building wheel for language-check (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1gavd49p/language-check/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1gavd49p/language-check/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tixhutjr
       cwd: /tmp/pip-install-1gavd49p/language-check/
  Complete output (4 lines):
  Could not parse Java version from """openjdk version "17.0.11" 2024-04-16
  OpenJDK Runtime Environment (build 17.0.11+9-Ubuntu-120.04.2)
  OpenJDK 64-Bit Server VM (build 17.0.11+9-Ubuntu-120.04.2, mixed mode, sharing)
  """.
  ----------------------------------------
  ERROR: Failed building wheel for language-check
pauloney commented 2 months ago

I see that the problem is a duplicate of #75. Closing this one now.