본문 바로가기

기타

[플라스크 error] ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers'

ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers'

 

플라스크 실행 시 flask.helpers가 어쩌구저쩌구... 하면서 위와 같은 에러가 났다. 다행히 찾아보니 금방 해결책이 나왔다.

 

https://github.com/P0cL4bs/wifipumpkin3/issues/117

 

ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (/usr/local/lib/python3.9/dist-packages/flask/he

When i run wifipumpkin3 i get this issue. ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (/usr/local/lib/python3.9/dist-packages/flask/helpers.py)

github.com

 

플라스크 2.0.0 버전 이상에서 나는 에러인것 같다. 기존에 설치했던 최신 플라스크를 지우고 1.1.2 버전으로 재설치했더니 에러가 사라졌다.

 

pip install Flask==1.1.2

 

해결!