Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

FlaskSecurity (1.6.3) and FlaskLogin (0.2.0) issue #119

Closed
ghost opened this issue Jun 17, 2013 · 9 comments
Closed

FlaskSecurity (1.6.3) and FlaskLogin (0.2.0) issue #119

ghost opened this issue Jun 17, 2013 · 9 comments

Comments

@ghost
Copy link

ghost commented Jun 17, 2013

flask_security/core.py", line 13, in
from flask.ext.login import AnonymousUser as AnonymousUserBase
ImportError: cannot import name AnonymousUser

@troyastorino
Copy link

Having the same issue with Flask-Login 0.2.1

@mattupstate
Copy link
Collaborator

The temporary fix is to downgrade Flask-Login to version 0.1.3. Flask-Login 0.2.1 got rid of the AnonymousUser class in favor of an AnonymousUserMixin class.

@sethmoon
Copy link

I thought I was going nuts when I installed flask security on a new system today to realize that it's not working. Thank you for this, I hope flask-security fixes this soon. (seems like a simple fix)

@mattupstate
Copy link
Collaborator

I'm trying to get Flask-Security ready for Python 3, but there are some issues getting some of the dependencies up to speed as well. More specifically Flask-WTF, which depends on Flask-Uploads, is proving difficult to get up to speed. I don't feel much pressure to release an update Flask-Security quite yet. The simple fix is to install Flask-Login 0.1.3:

$ pip install flask-login==0.1.3 --upgrade

@1xch
Copy link

1xch commented Jun 18, 2013

I recently redid flask-upload on my own as flup but haven't pulled my changes to flask-upload :

https://github.com/thrisp/flup

Its a bit more up-to-date & tests pass so far on 2.7.3 & 3.3.2

edit: yes, doesn't make much of a difference that flask-wtf requires flask-upload, but its a thought

@mattupstate
Copy link
Collaborator

I've also got changes for both Flask-Uploads and Flask-WTF locally, but the repo owner for Flask-Uploads has not responded to any communication.

@1xch 1xch mentioned this issue Jun 18, 2013
@markhildreth
Copy link

@mattupstate: Unfortunately, flask-login 0.1.3 was removed from pypi. Does flask-login 0.1.2 work?

@mattupstate
Copy link
Collaborator

Unfortunately it does not. See issue #123 regarding this. I will hopefully be releasing an update shortly.

@mattupstate
Copy link
Collaborator

Fixed in d19bb98

galeo pushed a commit to galeo/flask-security-outdated that referenced this issue Mar 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants