Flask-Web-App-Tutorial icon indicating copy to clipboard operation
Flask-Web-App-Tutorial copied to clipboard

ImportError: cannot import name 'blueprint' from 'flask'

Open Golpavel opened this issue 3 years ago • 2 comments

Hi, I copied all the code form this tutorial, to make sure, but I always get this error, it supposed to be something with settings or instalation.

Traceback (most recent call last): File "/Users/pavelgol/Coding/Flask web/main.py", line 3, in app = create_app() File "/Users/pavelgol/Coding/Flask web/website/init.py", line 7, in create_app from .views import views File "/Users/pavelgol/Coding/Flask web/website/views.py", line 1, in from flask import blueprint ImportError: cannot import name 'blueprint' from 'flask' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/init.py)

Thank you.

Golpavel avatar Sep 09 '22 20:09 Golpavel

I had the same issue, but i changed my interpreter to python 3.10.2 and than it worked.

CODER6GC avatar Feb 05 '23 10:02 CODER6GC

change the intepreter

Hammadnmt avatar Nov 27 '23 12:11 Hammadnmt