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

Installs in Python 2, but fails with syntax error #2

Open
AndreasEisele opened this issue Jan 4, 2019 · 0 comments
Open

Installs in Python 2, but fails with syntax error #2

AndreasEisele opened this issue Jan 4, 2019 · 0 comments

Comments

@AndreasEisele
Copy link

Uses Python 3 syntax, invalid in Python 2:

$ pip install panlex_API
...
Successfully installed certifi-2018.11.29 chardet-3.0.4 idna-2.8 panlex-API-1.2.0 ratelimit-2.2.1 requests-2.21.0 urllib3-1.24.1
$ python
Python 2.7.5 (default, Jul 13 2018, 13:06:57)
>>> import panlex
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../python2.7/site-packages/panlex.py", line 10
    def set_version(version:int):
                           ^
SyntaxError: invalid syntax
>>>

I could get rid of the problem by manually removing argument annotations in the source file, but I assume there should be an easier solution.

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

No branches or pull requests

1 participant