Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errr on import evalml #4273

Open
Sanojdon opened this issue Aug 12, 2023 · 1 comment
Open

Errr on import evalml #4273

Sanojdon opened this issue Aug 12, 2023 · 1 comment
Labels
bug Issues tracking problems with existing features.

Comments

@Sanojdon
Copy link

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
@Sanojdon Sanojdon added the bug Issues tracking problems with existing features. label Aug 12, 2023
@eccabay
Copy link
Contributor

eccabay commented Aug 18, 2023

Hi @Sanojdon, thanks for filing! It looks like your version of evalml might be out of date. Could you post which version you're trying to run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues tracking problems with existing features.
Projects
None yet
Development

No branches or pull requests

2 participants