Fix : ImportError: cannot import name '_request_ctx_stack' from 'flask'#69
Open
jhanm12 wants to merge 1 commit intoplaypauseandstop:masterfrom
Open
Fix : ImportError: cannot import name '_request_ctx_stack' from 'flask'#69jhanm12 wants to merge 1 commit intoplaypauseandstop:masterfrom
jhanm12 wants to merge 1 commit intoplaypauseandstop:masterfrom
Conversation
Author
|
@playpauseandstop Can you please review. |
Author
|
To make this package compatible with latest Flask Versions. |
makise-homura
added a commit
to makise-homura/flask-script-ng
that referenced
this pull request
Feb 27, 2026
Switch from `_request_ctx_stack` to `app_ctx` (Flask>2.3.3) - See https://stackoverflow.com/questions/77240858/how-to-fix-cannot-import-name-request-ctx-stack-from-flask and playpauseandstop/Flask-And-Redis#69 - `request_ctx` is planned to be superseded by `app_ctx` in Flask>=4.0 Use `flask_script._compat` instead of `flask._compat` for `text_type` (Flask>=2.0.0) - See https://stackoverflow.com/questions/67538056/flask-script-modulenotfounderror-no-module-named-flask-compat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix : #68