flask-realworld-example-app icon indicating copy to clipboard operation
flask-realworld-example-app copied to clipboard

While importing 'autoapp', an ImportError was raised

Open tararelan opened this issue 3 years ago • 2 comments

Followed the steps given up until flask db init where I got the following error:

While importing 'flask-realworld-example-app.autoapp', an ImportError was raised

image

tararelan avatar Dec 29 '21 07:12 tararelan

To debug it, try to run: python3 autoapp.py

UPDATE: My Python version is 3.9.7 on Ubuntu 21.10. For me it turned out that the problem is in the Flask-JWT-Extended module version. There are some breaking changes in the module from version 4.x. Downgrade to 3.7.0 helped me: pip install Flask-JWT-Extended==3.7.0

psychoche avatar Feb 05 '22 12:02 psychoche

@psychoche thank you, this was also the problem with my setup. Maybe setting the version in requirements would be better for those who will also face same problem in the future.

baranyeni avatar Feb 16 '22 22:02 baranyeni