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

"TypeDict" error when importing Featurewiz class... #115

Open
deuf-projects opened this issue Sep 1, 2024 · 0 comments
Open

"TypeDict" error when importing Featurewiz class... #115

deuf-projects opened this issue Sep 1, 2024 · 0 comments

Comments

@deuf-projects
Copy link

Hi,

Still trying 'Best_Pipeline_Featurewiz.ipynb', but this time with the proper Featurewiz venv kernel (python 3.7.2) and I'm going even less far than with my base anaconda venv. See the error message below:

from featurewiz import FeatureWiz

{
"name": "ImportError",
"message": "cannot import name 'TypedDict' from 'typing' (c:\Users\Utilisateur\anaconda3\envs\cyber-ai-models\lib\typing.py)",
"stack": "---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_12928\3183339074.py in

----> 1 from featurewiz import FeatureWiz

c:\Users\Utilisateur\anaconda3\envs\cyber-ai-models\lib\site-packages\featurewiz\init.py in
8 # Version
9 from .version import version
---> 10 from .featurewiz import featurewiz
11 from .featurewiz import FE_split_one_field_into_many, FE_add_groupby_features_aggregated_to_dataframe
12 from .featurewiz import FE_start_end_date_time_features

c:\Users\Utilisateur\anaconda3\envs\cyber-ai-models\lib\site-packages\featurewiz\featurewiz.py in
27 from sklearn.multioutput import MultiOutputClassifier, MultiOutputRegressor
28 from sklearn.multiclass import OneVsRestClassifier
---> 29 import xgboost as xgb
30 from xgboost.sklearn import XGBClassifier
31 from xgboost.sklearn import XGBRegressor

c:\Users\Utilisateur\anaconda3\envs\cyber-ai-models\lib\site-packages\xgboost\init.py in
5
6 from . import tracker # noqa
----> 7 from . import collective, dask, rabit
8 from .core import (
9 Booster,

c:\Users\Utilisateur\anaconda3\envs\cyber-ai-models\lib\site-packages\xgboost\dask.py in
41 from functools import partial, update_wrapper
42 from threading import Thread
---> 43 from typing import (
44 TYPE_CHECKING,
45 Any,

ImportError: cannot import name 'TypedDict' from 'typing' (c:\Users\Utilisateur\anaconda3\envs\cyber-ai-models\lib\typing.py)"
}

Thanks in advance for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant