alteryx / alteryx/evalml

Errr on import evalml

Open
#4,273 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
850
Forks
96
PR merge metrics
No merged PRs in 30d

Description

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)

```python
import evalml

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.