Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name '_request_ctx_stack' #18

Open
ezbik opened this issue Jan 23, 2024 · 1 comment
Open

cannot import name '_request_ctx_stack' #18

ezbik opened this issue Jan 23, 2024 · 1 comment

Comments

@ezbik
Copy link

ezbik commented Jan 23, 2024

doesnt work

$ ./app.py 
Traceback (most recent call last):
  File "./app.py", line 5, in <module>
    from flask_security import Security, SQLAlchemyUserDatastore, \
  File "/home/z/tmp/Flask-Admin-Dashboard/venv/lib/python3.8/site-packages/flask_security/__init__.py", line 13, in <module>
    from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
  File "/home/z/tmp/Flask-Admin-Dashboard/venv/lib/python3.8/site-packages/flask_security/core.py", line 18, in <module>
    from flask_babelex import Domain
  File "/home/z/tmp/Flask-Admin-Dashboard/venv/lib/python3.8/site-packages/flask_babelex/__init__.py", line 20, in <module>
    from flask import _request_ctx_stack
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/home/z/tmp/Flask-Admin-Dashboard/venv/lib/python3.8/site-packages/flask/__init__.py)
@202030481266
Copy link

I have tried many times and test many version packages. The following requirments runs well in Ubuntu22.04 LTS.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants