import fail when using eureka models standalone
Closed this issue · 0 comments
I'm trying to use eureka models in another repo by importing from the installed package.
When trying 'from eureka_ml_insights.models import AzureOpenAIModel' the imports fail due to circular imports issue.
from eureka_ml_insights.models import AzureOpenAIModel
Traceback (most recent call last):
File "", line 1, in
File "code/eureka-ml-insights/eureka_ml_insights/models/init.py", line 1, in
from .models import (
File "code/eureka-ml-insights/eureka_ml_insights/models/models.py", line 14, in
from eureka_ml_insights.data_utils import GetKey
File "code/eureka-ml-insights/eureka_ml_insights/data_utils/init.py", line 1, in
from .data import (
File "code/eureka-ml-insights/eureka_ml_insights/data_utils/data.py", line 17, in
from eureka_ml_insights.core import NumpyEncoder
File "code/eureka-ml-insights/eureka_ml_insights/core/init.py", line 1, in
from .data_join import DataJoin
File "code/eureka-ml-insights/eureka_ml_insights/core/data_join.py", line 5, in
from .data_processing import DataProcessing
File "code/eureka-ml-insights/eureka_ml_insights/core/data_processing.py", line 10, in
from .pipeline import Component
File "code/eureka-ml-insights/eureka_ml_insights/core/pipeline.py", line 6, in
from eureka_ml_insights.configs.config import ComponentConfig
File "code/eureka-ml-insights/eureka_ml_insights/configs/init.py", line 13, in
from .dna import DNA_PIPELINE
File "code/eureka-ml-insights/eureka_ml_insights/configs/dna.py", line 4, in
from eureka_ml_insights.core import (
ImportError: cannot import name 'DataProcessing' from partially initialized module 'eureka_ml_insights.core' (most likely due to a circular import) (code/eureka-ml-insights/eureka_ml_insights/core/init.py)