joelverhagen / flask-rauth

Adds OAuth 1.0/a, 2.0, and Ofly consumer support for Flask.
Other
53 stars 22 forks source link

rauth.service.Response ImportError due to rauth api change #4

Open jasco opened 11 years ago

jasco commented 11 years ago

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

hex commented 11 years ago

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

maxcountryman commented 11 years ago

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.

tlamadon commented 10 years ago

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