myint / language-check

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

Installing via 3to2 produces import error #17

Closed duhaime closed 9 years ago

duhaime commented 9 years ago

Hi, I'm on RHEL running the Anaconda distribution of Python 2.7.9. I run pip install 3to2, then copy the language_check source, cd into the source, and run python2 setup.py install. Everything installs correctly, but upon import I get:

>>> import language_check
Traceback (most recent call last):
  File "", line 1, in 
  File "language_check/__init__.py", line 238
    def check(self, text: str, srctext=None) -> [Match]:
                        ^
SyntaxError: invalid syntax
duhaime commented 9 years ago

Changing out of the source directory allowed me to import this correctly, so I'll close this issue. Whoops!