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

Could not import evalml #4402

Open
Akshat111111 opened this issue Mar 2, 2024 · 2 comments
Open

Could not import evalml #4402

Akshat111111 opened this issue Mar 2, 2024 · 2 comments
Labels
bug Issues tracking problems with existing features.

Comments

@Akshat111111
Copy link

The code is not working in google colab.I have installed all the things but the code is not running. !pip install evalml !pip install featuretools pip install -U evalml and !pip install --upgrade evalml featuretools.But when I am running this - !pip show evalml its showing Name: evalml
Version: 0.83.0
Summary: an AutoML library that builds, optimizes, and evaluates machine learning pipelines using domain-specific objective functions
Home-page:
Author:
Author-email: "Alteryx, Inc." [email protected]
License: BSD 3-Clause License

    Copyright (c) 2019, Alteryx, Inc.
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:
    
    * Redistributions of source code must retain the above copyright notice, this
      list of conditions and the following disclaimer.
    
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    
    * Neither the name of the copyright holder nor the names of its
      contributors may be used to endorse or promote products derived from
      this software without specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Location: /usr/local/lib/python3.10/dist-packages
Requires: black, catboost, category-encoders, click, cloudpickle, colorama, dask, distributed, featuretools, graphviz, holidays, imbalanced-learn, ipywidgets, kaleido, lightgbm, lime, matplotlib, networkx, nlp-primitives, numpy, packaging, pandas, plotly, pmdarima, pyzmq, scikit-learn, scikit-optimize, scipy, seaborn, shap, sktime, statsmodels, texttable, tomli, vowpalwabbit, woodwork, xgboost. But giving this error ---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in <cell line: 2>()
1 #### TRain A\nd test data split
----> 2 import evalml
3
4 X_train,X_test,y_train,y_test=evalml.preprocessing.split_data(X,y,problem_type='binary')
5 evalml.problem_types.ProblemTypes.all_problem_types

12 frames
/usr/local/lib/python3.10/dist-packages/evalml/pipelines/components/transformers/preprocessing/natural_language_featurizer.py in
3
4 import featuretools as ft
----> 5 from featuretools.primitives import (
6 DiversityScore,
7 MeanCharactersPerWord,

ImportError: cannot import name 'DiversityScore' from 'featuretools.primitives' (/usr/local/lib/python3.10/dist-packages/featuretools/primitives/init.py)
Required-by:

Code Sample, a copy-pastable example to reproduce your bug.

# Your code here
import evalml

X_train,X_test,y_train,y_test=evalml.preprocessing.split_data(X,y,problem_type='binary')
evalml.problem_types.ProblemTypes.all_problem_types
@Akshat111111 Akshat111111 added the bug Issues tracking problems with existing features. label Mar 2, 2024
@Akshat111111
Copy link
Author

Kindly resolve this issue as soon as possible @jeremyliweishih @christopherbunn

@seongwritescode
Copy link

I got the same error too.

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