You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
...
from flask_track_usage import TrackUsage
File "/opt/homebrew/lib/python3.11/site-packages/flask_track_usage/init.py", line 43, in
from flask import _request_ctx_stack, g
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/opt/homebrew/lib/python3.11/site-packages/flask/init.py)
The above import error is caused by removing the deprecated code got removed from flask-3.0.0:
Traceback (most recent call last):
...
from flask_track_usage import TrackUsage
File "/opt/homebrew/lib/python3.11/site-packages/flask_track_usage/init.py", line 43, in
from flask import _request_ctx_stack, g
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/opt/homebrew/lib/python3.11/site-packages/flask/init.py)
The above import error is caused by removing the deprecated code got removed from flask-3.0.0:
pallets/flask#5223
_app_ctx_stack and _request_ctx_stack are removed as places to store custom data in favor of g. The deprecation period was already extended from 2.3.
The text was updated successfully, but these errors were encountered: