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

Error during pip install #17

Open
colinfernandes87 opened this issue May 27, 2020 · 9 comments · Fixed by #19
Open

Error during pip install #17

colinfernandes87 opened this issue May 27, 2020 · 9 comments · Fixed by #19

Comments

@colinfernandes87
Copy link

Building wheel for language-check (setup.py) ... error
ERROR: Failed building wheel for language-check
Running setup.py clean for language-check
Failed to build language-check
Installing collected packages: language-check, pycontractions
Running setup.py install for language-check ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3s1mdcb/language-check/setup.py'"'"'; file='"'"'/tmp/pip-install-_3s1mdcb/language-check/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-i7qdzghy/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

@satyaad-kore
Copy link

#12
This issue link helped in the installation issue

@noelslice
Copy link

noelslice commented Jun 15, 2020

How about switching the language-check dependency to language_tool_python (forked from language-check):

https://github.com/jxmorris12/language_tool_python
https://pypi.org/project/language-tool-python/

language-check doesn't seem to be maintained currently.

language_tool_python works for me while language-check fails to install because of that same regex parsing bug in how they are trying to determine your java version.

@MrStutterZ
Copy link

MrStutterZ commented Jul 6, 2020

+1 to noelslice

It appears language-check has been abandoned... can you switch to language-tool-python?
myint/language-check#31

Can you modify your package yo work with language-tool-python instead of language-check?

@MCFreddie777
Copy link

Any updates on this? Happening to me on MacOS as well.

@Martin36
Copy link
Contributor

Any updates on this? Happening to me on MacOS as well.

I have created a PR to fix this problem #19

@ian-beaver
Copy link
Owner

If you find an LGPL language tool wrapper I would be open to changing this. By linking to that specific library it forces GPL on my code which I can't do as this library is used commercially by myself and others and that would enforce GPL on those projects.

@ian-beaver ian-beaver reopened this Nov 24, 2021
@ian-beaver
Copy link
Owner

If I ever find time (or if someone else does) I may just fork language-check and patch the installer to detect newer Java versions. It would be an easy fix.

@grueneke
Copy link

@ian-beaver any chance you had the time to patch the installer to detect newer Java versions?

@MCFreddie777
Copy link

MCFreddie777 commented Feb 5, 2022

@ian-beaver The Java regex was already fixed for new versions in myint/language-check#57.

There is also newer problem with fetching LanguageTool from their web, which was already fixed in myint/language-check#79.

The only problem is, that language-check hasn't released new version since 2017.

Temporary workaround (install from forked & fixed repo):

# ssh
pip install git+ssh://git@github.com/MCFreddie777/language-check.git
# https
pip install git+https://github.com/MCFreddie777/language-check.git

and then

pip install pycontractions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants