Snowflake-Labs / sfguide-intro-to-machine-learning-with-snowflake-ml-for-python

Apache License 2.0
54 stars 111 forks source link

fix: assert not snowpark_utils.is_in_stored_procedure() fails #17

Open sfc-gh-vtimofeenko opened 3 months ago

sfc-gh-vtimofeenko commented 3 months ago

Current version of the ml registry needs the extra parameter, otherwise this step fails with:

File "<..>/env_utils.py", line 371, in get_matched_package_versions_in_snowflake_conda_channel assert not snowpark_utils.is_in_stored_procedure() # type: ignore[no-untyped-call]

Upcoming release should fix this:

https://docs.snowflake.com/developer-guide/snowpark-ml/model-registry/overview#current-limitations-and-issues

For now, the parameter is needed.

maksteel commented 3 months ago

thanks @sfc-gh-vtimofeenko this worked like a charm