ModuleNotFoundError: No module named '__main__.models'; '__main__' is not a package
When running python rerss/app.py initdb
, here's the output:
Traceback (most recent call last):
File "rerss/app.py", line 14, in <module>
from .models import Entry, Feed
ModuleNotFoundError: No module named '__main__.models'; '__main__' is not a package
I believe it's because of https://stackoverflow.com/questions/72852/how-to-do-relative-imports-in-python/73149#73149