-
Notifications
You must be signed in to change notification settings - Fork 225
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
SyntaxError on macOS #146
Comments
You need at least Python 3.6, your stack indicates you are using Python 2.7. |
That's strange, I do have python 3.7.0 installed via Homebrew |
Your method of installation seems to have installed it for Python 2.7. How did you install it? |
Initially, I was using the pre-installed version of Python, after which I ran |
Just so I can keep in here for future reference: Python got a lot of development in version 2 way too fast without much planning, which made a mess, which would involve making backwards incompatible changes in order to fix, but making such move so soon in the language would be too big of a shot in the foot, so they decided to maintain both versions, the 2 for legacy compatibility, and for butthurts who doesn't like change (it is open source after all people can keep python 2 alive forever), and 3 for all future development. A lot of operating of operational systems, specially the more conservative ones which consider anything less then 3 years old is way too volatile, refused to (
|
My guess is that you used pip3 --help
# or
pip3.6 --help I'm not that used to pip packaging, but it would be great to fail install (or warn) if we aren't installing to Python >= 3.6 |
Looks like there's an official way to do this now: https://packaging.python.org/guides/dropping-older-python-versions/ |
That python_requires is already there in the setup.py Since his python didn't catch it up (probably too outdated to support that key), we should add a few lines of manual check. import sys
assert (sys.version_info.major >= 3 and sys.version_info.minor >= 6), "Pokémon-Terminal requires at least Python 3.6" |
It's supported by pip9+, current version is 10.0.1. It seems like an odd choice to me to deliberately drop support for python2.7 but attempt to support versions of pip two major versions out of date, but to each their own. |
I encountered
and:
after a successful installation on macOS
The text was updated successfully, but these errors were encountered: