flask-rauth icon indicating copy to clipboard operation
flask-rauth copied to clipboard

rauth.service.Response ImportError due to rauth api change

Open jasco opened this issue 11 years ago • 3 comments

Installed flask-rauth with pip. Seems to have installed: Flask_Rauth-0.3.2-py2.7.egg rauth-0.5.1-py2.7.egg

However the rauth api changed as of https://github.com/litl/rauth/commit/bad95312b7eb87284795c36f7fb0e40e268334d8 so that Response has been removed from service.py

File "/sw/myprog/prog.py", line 4, in from flask_rauth import RauthOAuth2 File "/sw/myprog/env/local/lib/python2.7/site-packages/flask_rauth.py", line 17, in from rauth.service import OAuth2Service, OAuth1Service, OflyService, Response, parse_utf8_qsl ImportError: cannot import name Response

jasco avatar Mar 23 '13 19:03 jasco

How can this be fixed? I have the same error.

hex avatar Apr 21 '13 11:04 hex

You probably want to use the pre-0.5.x version of rauth, e.g. 0.4.x, if you want to use Flask-Rauth, for the time being. However, I will say that using rauth with Flask is not at all complicated and you may not need this wrapper. Check out the Facebook Flask example.

maxcountryman avatar Apr 23 '13 15:04 maxcountryman

running the following does resolve that error for me, thanks easy_install rauth==0.4.17

tlamadon avatar Apr 14 '14 22:04 tlamadon