Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

While importing 'autoapp', an ImportError was raised #51

Open
tararelan opened this issue Dec 29, 2021 · 2 comments
Open

While importing 'autoapp', an ImportError was raised #51

tararelan opened this issue Dec 29, 2021 · 2 comments

Comments

@tararelan
Copy link

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

@psychoche
Copy link

psychoche commented Feb 5, 2022

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

@baranyeni
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants