flask-sentinel
flask-sentinel copied to clipboard
Breaking changes with werkzeug==1.0.0
Environment:
Python 3.7.6 Eve 1.1
Installed dependencies:
setuptools==41.0.1
flask-pymongo==0.5.2
redis==2.10.6
requests-oauthlib==1.1.0
eve==1.1
eve-swagger==0.0.11
Werkzeug==1.0.0
uwsgi==2.0.18
flask-cors==3.0.8
flask-sentinel==0.0.7
Traceback (most recent call last):
File "wsgi.py", line 1, in <module>
from server import app
File "./server.py", line 2, in <module>
from flask_sentinel import ResourceOwnerPasswordCredentials, oauth
File "/usr/local/lib/python3.7/site-packages/flask_sentinel/__init__.py", line 1, in <module>
from .flask_sentinel import ResourceOwnerPasswordCredentials, oauth # noqa
File "/usr/local/lib/python3.7/site-packages/flask_sentinel/flask_sentinel.py", line 11, in <module>
from . import views
File "/usr/local/lib/python3.7/site-packages/flask_sentinel/views.py", line 11, in <module>
from .core import oauth
File "/usr/local/lib/python3.7/site-packages/flask_sentinel/core.py", line 10, in <module>
from flask_oauthlib.provider import OAuth2Provider
File "/usr/local/lib/python3.7/site-packages/flask_oauthlib/provider/__init__.py", line 12, in <module>
from .oauth1 import OAuth1Provider, OAuth1RequestValidator
File "/usr/local/lib/python3.7/site-packages/flask_oauthlib/provider/oauth1.py", line 13, in <module>
from werkzeug import cached_property
ImportError: cannot import name 'cached_property' from 'werkzeug' (/usr/local/lib/python3.7/site-packages/werkzeug/__init__.py)
As of now, I can only get to work with Werkzeug==0.16.1 only.
Yes, please, fix this small issue Change from werkzeug import cached_property to from werkzeug.utils import cached_property \flask_oauthlib\provider\oauth1.py
This is probably connected to #35
from the stack trace, it looks like a problem in flask_oauthlib, one of our dependencies.