My project structure is:
APP(dir)
app(dir)
model(dir)
metric_data.py
__init__.py
app.py
setup.py
When I'm running app.py
with import statement of
from model.metric_data import MetricData
MetricData
is a class, I'm able to successfully run the application retrieving data from metric_data.py
file. But when I build it as a package and then try importing package app
from model.metric_data import MetricData
this statement is failing. Can anyone help me with the issue
here, I looked on the relative import part and tried but it didn't work.