snowflake-ml-python
Closed this issue · 0 comments
ImportError Traceback (most recent call last)
Cell In[1], line 3
1 import warnings
----> 3 from snowflake.ml.modeling.impute import SimpleImputer
4 from snowflake.ml.modeling.metrics import accuracy_score, precision_score, recall_score
5 from snowflake.ml.modeling.preprocessing import OneHotEncoder
File c:\Users\USER\anaconda\envs\Intro_SnowML\lib\site-packages\snowflake\ml\modeling\impute_init_.py:7
5 pkg_dir = os.path.dirname(os.path.abspath(file))
6 pkg_name = name
----> 7 exportable_classes = init_utils.fetch_classes_from_modules_in_pkg_dir(pkg_dir=pkg_dir, pkg_name=pkg_name)
8 for k, v in exportable_classes.items():
9 globals()[k] = v
File c:\Users\USER\anaconda\envs\Intro_SnowML\lib\site-packages\snowflake\ml_internal\init_utils.py:26, in fetch_classes_from_modules_in_pkg_dir(pkg_dir, pkg_name)
24 # import the module and iterate through its attributes
25 try:
---> 26 module = importlib.import_module(f"{pkg_name}.{module_info.name}")
27 for attribute_name in dir(module):
28 attribute = getattr(module, attribute_name)
File c:\Users\USER\anaconda\envs\Intro_SnowML\lib\importlib_init_.py:126, in import_module(name, package)
124 break
125 level += 1
...
(...)
41 BaseFeatureSpec,
42 )
ImportError: cannot import name 'PandasSeries' from 'snowflake.snowpark.types' (c:\Users\USER\anaconda\envs\Intro_SnowML\lib\site-packages\snowflake\snowpark\types.py)