I've been searching on stackoverflow and can't find out what's wrong.
My directory structure is as follows:
--project
--__init__.py
--helpers
--__init__.py
--functions.py
--set1
--__init__.py
--foo.py
--set2
--__init__.py
--setn
--__init__.py
In foo.py
I want to import functions.py
I do this with
from ..helpers import functions
And this is giving me the error:
Attempted relative import in non-package error
All of the answers I've found so far deal with setting up init.py properly.
Using python2.7 on Mac