I have read the solutions from other answers and implemented them, but I'm still getting a "attempted relative import beyond top-level package" error. Here is my directory structure:
lab (has init)
  examples (has init)
    static (has init)
      experiment.py (I'm in this file in static, and I want to access samples)
 objects (has init)
   components (has init)
     Samples.py (the file I want to import)
The following line is causing the error, but it makes sense logically.
from ...lab.objects.components import Samples
yields
ValueError: attempted relative import beyond top-level package
What's wrong exactly?
For added clarity: My current directory is: lab/examples/static and I'm in experiment.py
I want to import: lab/objects/components/Samples.py
"lab" is the top-most level package directory.
