I'm trying to import from a parent folder. The folder structure is (ignore the names)
experiments
__init__.py
poppy.py
ostepop
__ init__.py
importio.py
nopop
__ init__.py
loggio.py
I tried adding __init__.py
to every folder, but it didn't have any affect
import experiments.ostepop.loggio
gives error message:
ModuleNotFoundError: No module named 'experiments'
and from ..experiments import poppy
gives
ImportError: attempted relative import with no known parent package
Any tips on how to import poppy.py or loggio.py from importio.py?