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

Error with Flask Scaffold #72

Closed
chadrockey opened this issue Oct 18, 2023 · 2 comments
Closed

Error with Flask Scaffold #72

chadrockey opened this issue Oct 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@chadrockey
Copy link

I'm seeing import errors when following the installation instructions:

`
Traceback (most recent call last):
File "/home/chadrockey/python/python/ezbeq/lib/python3.9/site-packages/flask_restx/api.py", line 18, in
from flask.helpers import _endpoint_from_view_func
ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (/home/chadrockey/python/python/ezbeq/lib/python3.9/site-packages/flask/helpers.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/chadrockey/python/python/ezbeq/bin/./ezbeq", line 5, in
from ezbeq.main import main
File "/home/chadrockey/python/python/ezbeq/lib/python3.9/site-packages/ezbeq/main.py", line 10, in
from flask_restx import Api
File "/home/chadrockey/python/python/ezbeq/lib/python3.9/site-packages/flask_restx/init.py", line 2, in
from .api import Api # noqa
File "/home/chadrockey/python/python/ezbeq/lib/python3.9/site-packages/flask_restx/api.py", line 20, in
from flask.scaffold import _endpoint_from_view_func
ModuleNotFoundError: No module named 'flask.scaffold'
`

Looks like this was fixed in 2021, but I can't identify what dependency change is causing this.

@3ll3d00d
Copy link
Owner

3ll3d00d commented Oct 18, 2023

It's caused by python-restx/flask-restx#567

Workaround is to run

pip install Flask==2.3.3

Before you install ezbeq

@3ll3d00d 3ll3d00d added the bug Something isn't working label Oct 18, 2023
3ll3d00d added a commit that referenced this issue Oct 18, 2023
@3ll3d00d
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants