I have searched this and found many answers, all of which tell me to do exactly what I am doing, here is my directory structure:
app/
+-- __init__.py
+-- app_manager.py
+-- app_gui/
| +-- __init__.py
| +-- app_gui.py
in app_gui.py I have:
import tkinter as tk
from tkinter import ttk
from app_manager import AppManager
in app manager:
class AppManager():
def __init__(self):
""" default constructor for app manager """
In Visual Code, it actually resolves this to an auto completion, which tells me that at least Visual Code sees it as correctly done. However, if I run this I get the following error:
ModuleNotFoundError: No Module named "app_manager"
Edit
Full stack trace when changing to from app.app_manager import AppManager
:
Traceback (most recent call last):
File ".\app_gui\app_gui.py", line 4, in <module>
from app_manager import AppManager
ModuleNotFoundError: No module named 'app_manager'