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

Fix snowpark lookup responses #886

Closed
wants to merge 1 commit into from

Conversation

sfc-gh-turbaszek
Copy link
Contributor

@sfc-gh-turbaszek sfc-gh-turbaszek commented Mar 8, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Before

➜ snow snowpark package lookup google-ads --pypi-download                               



WARNING! Some packages appear to have native libraries!
Continue with package installation? [y/N]: y
The package google-ads is supported, but does depend on the
                following Snowflake supported libraries. You should
                include the following in your packages:
                PyYAML==6.0.1
oauthlib==3.2.2
requests==2.31.0
certifi==2024.2.2
➜ snow snowpark package create google-ads --pypi-download                               


WARNING! Some packages appear to have native libraries!
Continue with package installation? [y/N]: y
Package google-ads.zip created. You can now upload it to a stage (`snow snowpark package upload -f google-ads.zip -s <stage-name>`) and reference it in your procedure or function.
The package google-ads is supported, but does depend on the
                following Snowflake supported libraries. You should
                include the following in your packages:
                PyYAML==6.0.1
oauthlib==3.2.2
requests==2.31.0
certifi==2024.2.2

After

➜ snow snowpark package lookup google-ads --pypi-download                               

Checking package availability in Snowflake Anaconda
Installing locally google-ads
PyYAML is available on Anaconda, removing from package
oauthlib is available on Anaconda, removing from package
requests is available on Anaconda, removing from package
certifi is available on Anaconda, removing from package
Checking if any of packages requires native libraries

The package google-ads is not available on Snowflake Anaconda and requires native libraries.
You can try to create a zip using:
snow snowpark package create google-ads --pypi-download
➜ snow snowpark package create google-ads --pypi-download --package-native-libraries=yes

Anaconda check
  Checking package availability in Snowflake Anaconda
  Package not available on Anaconda
Building the package
  Installing locally google-ads
  PyYAML is available on Anaconda, removing from package
  oauthlib is available on Anaconda, removing from package
  requests is available on Anaconda, removing from package
  certifi is available on Anaconda, removing from package
  Checking if any of packages requires native libraries
  One or many packages may include native libraries. Such libraries may not work when uploaded to Snowpark.
  Creating google-ads.zip

Package google-ads.zip created. Upload it to stage using:
snow snowpark package upload -f google-ads.zip -s <stage-name>
and reference it in your procedure or function imports.

You should also include following packages in your function or procedure:
PyYAML==6.0.1
oauthlib==3.2.2
requests==2.31.0
certifi==2024.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant