You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SnowparkSQLException: (1304): 01b6c2ae-0204-750c-0000-640503c32566: 391546 (XX000): SQL compilation error: Cannot create a Python function with the specified packages. Please check your packages specification and try again. 'Packages not found: - autogluon-tabular[version='>=1.0']'. Hint: These packages are available in other python runtimes:["snowflake-ml-python"->[3.8, 3.10, 3.11], "cloudpickle==2.2.1"->[3.8, 3.10, 3.11]].
The strange part in the error message is that the package that was not found is returned as autogluon-tabular (notice the dash in the name), whereas we pass the correct name of the package autogluon.tabular (with a dot in the name). We suspect that somewhere under the hood the dot in the name of the package is being replaced by a dash and conda is failing to find a package with that name and ultimately failing to log the model.
github-actionsbot
changed the title
ML model registration doesn't work when the package name has dot in it
SNOW-1648322: ML model registration doesn't work when the package name has dot in it
Sep 2, 2024
The model you using its not supported natively, the preprocessing, autogluon does that which is not supported, so could you please create a custom model
We are trying to log a custom Machine Learning (ML) model to the Snowflake model registry using the
log_model
method https://docs.snowflake.com/en/developer-guide/snowpark-ml/reference/latest/api/registry/snowflake.ml.registry.RegistryThe dependencies are
autogluon.tabular
andsnowflake-ml-python
Below is the code we ran to log the model
The method returns the following error
The strange part in the error message is that the package that was not found is returned as
autogluon-tabular
(notice the dash in the name), whereas we pass the correct name of the packageautogluon.tabular
(with a dot in the name). We suspect that somewhere under the hood the dot in the name of the package is being replaced by a dash and conda is failing to find a package with that name and ultimately failing to log the model.I found these issues that might be related and/or causing this issue
pypa/pip#3678
pypa/pip#3666
Below are the answers to the generic template for bug reports
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using?
This happens in all supported versions of Python in Snowpark (3.8 to 3.11)
What operating system and processor architecture are you using?
We used a Snowpark Optimized Warehouse which are based on a Linux OS with x64 architecture, AFAIK.
What are the component versions in the environment (
pip freeze
)?The package details are provided above
What did you do?
The steps we took are pretty much the same as in this quickstart, the only difference is that we use Autogluon instead of PyCaret to log a custom model.
https://quickstarts.snowflake.com/guide/deploying_custom_models_to_snowflake_model_registry/index.html#3
What did you expect to see?
I expect the model to successfully register.
Can you set logging to DEBUG and collect the logs?
The debug level logs are attached.
error.log
The text was updated successfully, but these errors were encountered: