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

SNOW-1553591: 100357 (P0000): Cannot create a Python function with the specified packages. Please check your packages specification and try again. #2006

Closed
kasarpratik1002 opened this issue Jul 24, 2024 · 1 comment
Assignees
Labels
status-triage_done Initial triage done, will be further handled by the driver team wontfix

Comments

@kasarpratik1002
Copy link

Python version

3.11

Operating system and processor architecture

Linux-5.4.181-99.354.amzn2.aarch64-aarch64-with-glibc2.34

Installed packages

numpy
pandas
snowflake-ml-python
snowflake-snowpark-python
xgboost

What did you do?

I am creating the ML model for XGBOOST in snowflake using Python worksheet. I tried to register the model using snowflake registry. Below are the imports I tried

from snowflake.ml.registry import Registry

after adding this line I got 
100357 (P0000): Cannot create a Python function with the specified packages. Please check your packages specification and try again ERROR

What did you expect to see?

Stored procedure should have been created

Can you set logging to DEBUG and collect the logs?

import logging
import os

for logger_name in ('snowflake.connector',):
    logger = logging.getLogger(logger_name)
    logger.setLevel(logging.DEBUG)
    ch = logging.StreamHandler()
    ch.setLevel(logging.DEBUG)
    ch.setFormatter(logging.Formatter('%(asctime)s - %(threadName)s %(filename)s:%(lineno)d - %(funcName)s() - %(levelname)s - %(message)s'))
    logger.addHandler(ch)
@github-actions github-actions bot changed the title 100357 (P0000): Cannot create a Python function with the specified packages. Please check your packages specification and try again. SNOW-1553591: 100357 (P0000): Cannot create a Python function with the specified packages. Please check your packages specification and try again. Jul 24, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Aug 13, 2024
@sfc-gh-dszmolka
Copy link
Contributor

hello - the error message does not come from the PythonConnector (== this repository in which you raised this issue), but from components which run inside Snowflake itself.
(The PythonConnector doesn't run inside Snowflake; it's a library allowing clients who speak Python, to connect to Snowflake)

If troubleshooting is still needed, can you please log a Snowflake Support case so we could debug what's wrong in the Snowflake Python worksheet ? Thank you !

@sfc-gh-dszmolka sfc-gh-dszmolka added wontfix status-triage_done Initial triage done, will be further handled by the driver team and removed bug needs triage labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status-triage_done Initial triage done, will be further handled by the driver team wontfix
Projects
None yet
Development

No branches or pull requests

2 participants