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

Python 2.6 Running failed #107

Open
sihouzhao opened this issue Aug 2, 2018 · 3 comments
Open

Python 2.6 Running failed #107

sihouzhao opened this issue Aug 2, 2018 · 3 comments

Comments

@sihouzhao
Copy link

system:
CentOS release 6.3 (Final)
python:
Python 2.6.6
file:
./env/lib/python2.6/site-packages/babel/plural.py
error:
used_tags = rule.tags | {_fallback_tag}
SyntaxError: invalid syntax

@clearlylin
Copy link

clearlylin commented Aug 23, 2018

Traceback (most recent call last):
File "wsgi.py", line 28, in
from rrd import app
File "/root/dashboard/rrd/init.py", line 20, in
from flask.ext.babel import Babel, gettext
File "/root/dashboard/env/lib/python2.6/site-packages/flask/exthook.py", line 62, in load_module
import(realname)
File "/root/dashboard/env/lib/python2.6/site-packages/flask_babel/init.py", line 21, in
from babel import dates, numbers, support, Locale
File "/root/dashboard/env/lib/python2.6/site-packages/babel/init.py", line 20, in
from babel.core import UnknownLocaleError, Locale, default_locale,
File "/root/dashboard/env/lib/python2.6/site-packages/babel/core.py", line 16, in
from babel.plural import PluralRule
File "/root/dashboard/env/lib/python2.6/site-packages/babel/plural.py", line 244
used_tags = rule.tags | {_fallback_tag}

SyntaxError: invalid syntax

@Scharfsinnig
Copy link

Scharfsinnig commented Jan 7, 2019

I occured the same problem. How to solve it ? QAQ

@hugovk
Copy link

hugovk commented Jan 8, 2019

This is because Babel (the Python Internationalization Library) no longer supports Python 2.6, because Python 2.6 has been EOL and unsupported by the core Python team for over five years (since 2013-10-29).

You could try installing an old version of Babel (eg. pip install "babel<2.6.0") but you're better off upgrading to Python 2.7 (EOL 2020-01-01), or better, Python 3.

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

4 participants