pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 177 forks source link

Can this be used with Python v2.6.x? #94

Closed goterpsgo closed 8 years ago

goterpsgo commented 8 years ago

I'm working on a project that requires using Python v2.6.6 on Centos 6.x. I am using the sample code published by this repo (https://github.com/mattupstate/flask-jwt/blob/master/example/app.py) and python is returning a syntax error from init.py:

Traceback (most recent call last):
  File "./wsgi.py", line 1, in 
    from main import app as application
  File "./main.py", line 5, in 
    from auth import api_auth
  File "./auth.py", line 3, in 
    from flask_jwt import JWT
  File "/opt/mist_base/env/lib/python2.6/site-packages/flask_jwt/__init__.py", line 83
    for claim in verify_claims
      ^
SyntaxError: invalid syntax

I assume this works for other people's instances, and I know there are issues using some libraries with v2.6.x - is this the case?

thx,

goterpsgo commented 8 years ago

I was informed elsewhere this was indeed the case. I also was able to compile python v2.7.x from source and install it in a custom directory so this issue is now OBE.