The accepted answer from the following have not resolved my issue:
I am developing on Ubuntu 20.04.1 LTS.
Structure
- TopLevel
- task
- init.py
- file1.py
- main.py
- tests
- init.py
- testFile.py
- task
Code that causes the error is inside of testFile.py
- from task.file1 import Class
Error message:
- ModuleNotFoundError: No module names 'Class'
I realize it has to do with python searching only the test directory and I followed what this answer suggested: https://stackoverflow.com/a/61806535/14179793 It reveals that the task/ directory is not being searched but even when I implement what is suggested it still does not work.