Import definitions

I have the following file tree and the console gives me the following error:

Traceback (most recent call last):
  File "C:\Flask\APP-POWERBY\src\", line 6, in <module>
    from services.embedded import all_reports, all_workshop2 
ModuleNotFoundError: No module named 'services'

I am importing the two definitions (all_reports, all_workshop2) with
from services.embedded import all_reports, all_workshop2 from the file

what is wrong with me?

The issue may be that you are running the script using python src/ In this case, src will be included in the sys.path. However, since is located in the parent directory of src, it cannot be detected by the interpreter.

    src/  # <- module search path

To fix this, run python -m from the app-powerby project folder, and the current directory will be added to sys.path:

app-powerby  # <- module search path

Then services is under the search path and can be imported without problem.

thank you so much!