Snowflake-Labs / sfguide-getting-started-dataengineering-ml-snowpark-python

Apache License 2.0
77 stars 170 forks source link

Hex Notebook - No module named 'snowflake.core' #21

Closed sfc-gh-jholt closed 5 months ago

sfc-gh-jholt commented 7 months ago

When using the Hex notebook, I am getting errors when trying to import snowflake.core

from snowflake.snowpark.session import Session
from snowflake.snowpark.functions import month,year,col,sum
from snowflake.snowpark.version import VERSION
from snowflake.connector import connect
from snowflake.core import Root
from snowflake.core.task import Task, StoredProcedureCall
from snowflake.core.task.dagv1 import DAG, DAGTask, DAGOperation
from snowflake.core import CreateMode

# Misc
from datetime import timedelta
import json
import logging

logger = logging.getLogger("snowflake.snowpark.session")
logger.setLevel(logging.ERROR)

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_13/2588667778.py in <cell line: 14>()
     12 from snowflake.snowpark.version import VERSION
     13 from snowflake.connector import connect
---> 14 from snowflake.core import Root
     15 from snowflake.core.task import Task, StoredProcedureCall
     16 from snowflake.core.task.dagv1 import DAG, DAGTask, DAGOperation

ModuleNotFoundError: No module named 'snowflake.core'
iamontheinet commented 5 months ago

@sfc-gh-jholt Please use the latest version that uses Snowflake Notebooks which makes it really easy to get started.