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

cannot import name '_endpoint_from_view_func' from 'flask.helpers' #17

Open
swkim101 opened this issue Jul 7, 2022 · 0 comments · May be fixed by #18
Open

cannot import name '_endpoint_from_view_func' from 'flask.helpers' #17

swkim101 opened this issue Jul 7, 2022 · 0 comments · May be fixed by #18

Comments

@swkim101
Copy link

swkim101 commented Jul 7, 2022

python3 main.py --input ../ml/samples/final_model.pkl
Traceback (most recent call last):
  File "main.py", line 10, in <module>
    from app import bp
  File "/home/sungwoo/isadetect/api/app/__init__.py", line 9, in <module>
    from .controller.binary_controller import api as binary
  File "/home/sungwoo/isadetect/api/app/controller/binary_controller.py", line 9, in <module>
    from flask_restplus import Resource
  File "/home/sungwoo/isadetect/api/.venv/lib/python3.8/site-packages/flask_restplus/__init__.py", line 5, in <module>
    from .api import Api  # noqa
  File "/home/sungwoo/isadetect/api/.venv/lib/python3.8/site-packages/flask_restplus/api.py", line 19, in <module>
    from flask.helpers import _endpoint_from_view_func
ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (/home/sungwoo/isadetect/api/.venv/lib/python3.8/site-packages/flask/helpers.py)
@swkim101 swkim101 linked a pull request Jul 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant