How-to articles, tricks, and solutions about IMPORTERROR
How to fix "Attempted relative import in non-package" even with __init__.py
The "Attempted relative import in non-package" error occurs when attempting to use a relative import within a script that is not part of a package.
Importing files from different folder
To import a module from a different folder in Python, you can use the sys.path.append() function to add the path to the folder containing the module to your Python path.
What can I do about "ImportError: Cannot import name X" or "AttributeError: ... (most likely due to a circular import)"?
This error typically occurs when there is a circular import between two or more modules.