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

Flask version 3 and _request_ctx_stack #38

Open
frafall opened this issue Dec 26, 2023 · 0 comments
Open

Flask version 3 and _request_ctx_stack #38

frafall opened this issue Dec 26, 2023 · 0 comments

Comments

@frafall
Copy link

frafall commented Dec 26, 2023

_request_ctx_stack is depreciated in flask v3, any plans to update?

`
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import flask
from flask_rbac import RBAC
Traceback (most recent call last):
File "", line 1, in
File "/home/work/BRF/backend/env/lib/python3.10/site-packages/flask_rbac/init.py", line 12, in
from flask import request, abort, _request_ctx_stack
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/home/work/BRF/backend/env/lib/python3.10/site-packages/flask/init.py)
print(flask.version)
:1: DeprecationWarning: The 'version' attribute is deprecated and will be removed in Flask 3.1. Use feature detection or 'importlib.metadata.version("flask")' instead.
3.0.0

`

Hokanosekai added a commit to Hokanosekai/flask-rbac that referenced this issue Feb 7, 2024
Hokanosekai added a commit to Hokanosekai/flask-rbac that referenced this issue Feb 7, 2024
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

1 participant