-
Notifications
You must be signed in to change notification settings - Fork 339
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
ModuleNotFoundError: No module named 'flask.scaffold' #567
Comments
same here |
from flask 3.0.0, the
|
Hi @tumluliu , |
Thanks @vkdnjznd ! Worked like a charm. So I assume this would be included in |
Yes, it will be fixed in the next release. I’m also trying to solve the json schema issues stated elsewhere.
However, I’m not near a development computer this week, so it’s going to be a few days before I can get around to it unfortunately.
…On Sun, Oct 1, 2023 at 12:34, Lu Liu ***@***.***(mailto:On Sun, Oct 1, 2023 at 12:34, Lu Liu <<a href=)> wrote:
> from flask 3.0.0, the scaffold module was moved to sansio.scaffold This bug can be fixed by replacing flask.scaffold with flask.sansio.scaffold on the line between 17 and 20 in the flask_restx/api.py
>
> try:
> from flask.helpers import _endpoint_from_view_func
> except ImportError:
> from flask.sansio.scaffold import _endpoint_from_view_func
Thanks ***@***.***(https://github.com/vkdnjznd) ! Worked like a charm. So I assume this would be included in 1.1.1 as a bugfix?
—
Reply to this email directly, [view it on GitHub](#567 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACT3Q3BFW4GD3SHZA4I6LLLX5GLTHANCNFSM6AAAAAA5OGMVHM).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I just tested this project and found out that we may be blocked by pytest-dev/pytest-flask#167 before we could support Flask 3.0.0 in this project. |
Confirmed. I am working on patch for missing import. |
…l function import_check_view_func python-restx#567
…l function import_check_view_func python-restx#567
…l function import_check_view_func python-restx#567
also getting this error Python version: 3.9 |
With worker beeing incompatible with python 3.12: pytorch/pytorch#110436 With core having an incompatible dependency with flask 3 python-restx/flask-restx#567
Note: If you really need hot-fix consider temporal use of restx-monkey. I put stuff there same as suggesting pull requests here in |
Pyhton = 3.10.12 Facing the similar issue. |
It's working after modifying the line No 23 on file: Before Now |
With worker beeing incompatible with python 3.12: pytorch/pytorch#110436 With core having an incompatible dependency with flask 3 python-restx/flask-restx#567
Code
as from the official doc
Repro Steps (if applicable)
poetry new flask-restx-test
poetry add flask-restx
app.py
poetry shell
python app.py
Expected Behavior
the app should be up and running
Actual Behavior
error
Error Messages/Stack Trace
error with:
Environment
Additional Context
nothing else as this is the minimal sample. Could it be caused by some incompatibility?
The text was updated successfully, but these errors were encountered: