playpauseandstop / Flask-And-Redis

Simple as dead support of Redis database for Flask applications
http://flask-and-redis.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
84 stars 21 forks source link

ImportError: cannot import name '_request_ctx_stack' from 'flask' #68

Open jhanm12 opened 8 months ago

jhanm12 commented 8 months ago

Issue :

File "/test/python3.11/site-packages/flask_redis.py", line 24, in from flask import _request_ctx_stack ImportError: cannot import name '_request_ctx_stack' from 'flask'

Issue while importing this module: from flask import _app_ctx_stack

Flask Version : 3.0.1

DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.4.

https://stackoverflow.com/questions/77240858/how-to-fix-cannot-import-name-request-ctx-stack-from-flask

jhanm12 commented 8 months ago

Please update your code base, to support it with latest versions of Flask.