I am using eclipse with pyDev plugin and my python application in flask has the following structure:
[app]
├── __init__.py
├── main
│ ├── __init__.py
│ ├── controller.py
│ └── actions.py
├── classes
│ ├── __init__.py
│ └── helpme.py
as seen in this structure, app/, main/ and classes/ are packages and they have modules inside of them.
In controller.py module in main/ package, i am trying to import a class in helpme.py in classes/ package like this:
from ..util.helpme import helper_class
Here helper_class is a class in helpme.py with helper methods. When I do a python run of this application in eclipse, i always get the following error:
from ..util.helpme import helper_class
ValueError: Attempted relative import in non-package
I read a lot of questions/answers in stackoverflow option but none of them seem to fit in the bill here. Not sure how to resolve this issue.