Skip to content

Errr on import evalml #4273

Open
Open
@Sanojdon

Description

@Sanojdon

When I try to import evalml. I am getting the following error.

ImportError Traceback (most recent call last)
Cell In[34], line 1
----> 1 import evalml

File ~/anaconda3/lib/python3.11/site-packages/evalml/init.py:9
7 import evalml.demos
8 import evalml.model_family
----> 9 import evalml.model_understanding
10 import evalml.objectives
11 import evalml.pipelines

File ~/anaconda3/lib/python3.11/site-packages/evalml/pipelines/init.py:1
----> 1 """EvalML pipelines."""
2 from evalml.pipelines.components import (
3 Estimator,
4 OneHotEncoder,
(...)
47 OrdinalEncoder,
48 )
50 from evalml.pipelines.component_graph import ComponentGraph

File ~/anaconda3/lib/python3.11/site-packages/evalml/pipelines/components/init.py:2
1 """EvalML component classes."""
----> 2 from evalml.pipelines.components.component_base import ComponentBase, ComponentBaseMeta
3 from evalml.pipelines.components.estimators import (
4 Estimator,
5 LinearRegressor,
(...)
32 VowpalWabbitRegressor,
33 )
34 from evalml.pipelines.components.transformers import (
35 Transformer,
36 OneHotEncoder,
(...)
72 RFRegressorRFESelector,
73 )

File ~/anaconda3/lib/python3.11/site-packages/evalml/pipelines/components/estimators/init.py:2
1 """EvalML estimator components."""
----> 2 from evalml.pipelines.components.estimators.estimator import Estimator
3 from evalml.pipelines.components.estimators.classifiers import (
4 LogisticRegressionClassifier,
5 RandomForestClassifier,
(...)
16 VowpalWabbitMulticlassClassifier,
17 )
18 from evalml.pipelines.components.estimators.regressors import (
19 LinearRegressor,
20 LightGBMRegressor,
(...)
33 VowpalWabbitRegressor,
34 )

File ~/anaconda3/lib/python3.11/site-packages/evalml/pipelines/components/estimators/classifiers/init.py:4
1 """Classification model components."""
2 from evalml.pipelines.components.estimators.classifiers.logistic_regression_classifier import (
3 LogisticRegressionClassifier,
----> 4 )
5 from evalml.pipelines.components.estimators.classifiers.rf_classifier import (
6 RandomForestClassifier,
7 )
8 from evalml.pipelines.components.estimators.classifiers.xgboost_classifier import (
9 XGBoostClassifier,
10 )

File ~/anaconda3/lib/python3.11/site-packages/evalml/pipelines/components/estimators/classifiers/catboost_classifier.py:12
10 from evalml.problem_types import ProblemTypes
11 from evalml.utils import SEED_BOUNDS, get_random_seed, import_or_raise
---> 12 from evalml.utils.gen_utils import (
13 _convert_to_woodwork_structure,
14 _convert_woodwork_types_wrapper
15 )
18 class CatBoostClassifier(Estimator):
19 """
20 CatBoost Classifier, a classifier that uses gradient-boosting on decision trees.
21 CatBoost is an open-source library and natively supports categorical features.
22
23 For more information, check out https://catboost.ai/
24 """

ImportError: cannot import name '_convert_to_woodwork_structure' from 'evalml.utils.gen_utils' (/Users/sanojdon/anaconda3/lib/python3.11/site-packages/evalml/utils/gen_utils.py)

import evalml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues tracking problems with existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions