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-897742: snow snowpark package produces empty zip #319

Closed
sfc-gh-jhollan opened this issue Aug 22, 2023 · 1 comment
Closed

SNOW-897742: snow snowpark package produces empty zip #319

sfc-gh-jhollan opened this issue Aug 22, 2023 · 1 comment

Comments

@sfc-gh-jhollan
Copy link
Collaborator

sfc-gh-jhollan commented Aug 22, 2023

Python version

3.8

Platform

mac os M1

What happened

Current version (1.0.1):

I run :
snow snowpark package create faker-bilogy
and get the following output in terminal:

The package is not in Anaconda. Do you want to try to see if it's supported as a custom package (requires pip)? [Y/n]: Y
WARNING: You are using pip version 22.0.4; however, version 23.2.1 is available.
You should consider upgrading via the '/Users/jhollan/.pyenv/versions/3.8.16/bin/python3.8 -m pip install --upgrade pip' command.

I get a zip file, but when I open it's a completely empty zip.


Pervious version (0.2.9):
I run:
snow package create faker-biology
I get a much more verbose output (by default - related to #271 ):

Click to view
"faker-biology" not found in Snowflake anaconda channel...
The package is not in Anaconda. Do you want to try to see if it's supported as a custom package (requires pip)? [Y/n]:
Collecting faker-biology
Using cached faker_biology-0.6.0-py3-none-any.whl (110 kB)
Collecting Faker<13.0.0,>=12.3.0
Using cached Faker-12.3.3-py3-none-any.whl (1.5 MB)
Collecting faker-python<0.0.2,>=0.0.1
Using cached faker_python-0.0.1-py3-none-any.whl (2.7 kB)
Collecting python-dateutil>=2.4
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, faker-python, python-dateutil, Faker, faker-biology
Successfully installed Faker-12.3.3 faker-biology-0.6.0 faker-python-0.0.1 python-dateutil-2.8.2 six-1.16.0
WARNING: You are using pip version 22.0.4; however, version 23.2.1 is available.
You should consider upgrading via the '/Users/jhollan/Development/Temp/faker_biology/.venv/bin/python -m pip install --upgrade pip' command.
Checking for dependencies available in Anaconda...
Downloaded packages: dict_values([['dateutil', 'python_dateutil-2.8.2.dist-info'], ['__pycache__', 'six.py', 'six-1.16.0.dist-info'], ['faker-python', 'faker_python-0.0.1.dist-info'], ['faker_biology', 'faker_biology-0.6.0.dist-info'], ['faker', 'Faker-12.3.3.dist-info']])
"faker-python" not found in Snowflake anaconda channel...
"faker-biology" not found in Snowflake anaconda channel...
Good news! The following package dependencies can be
                imported directly from Anaconda, and will be excluded from
                the zip: ['python-dateutil', 'six', 'Faker']
Package python-dateutil: deleting ['dateutil', 'python_dateutil-2.8.2.dist-info']
Package six: deleting ['__pycache__', 'six.py', 'six-1.16.0.dist-info']
Package Faker: deleting ['faker', 'Faker-12.3.3.dist-info']
Checking to see if packages have native libaries...

No non-supported native libraries found in packages (Good news!)...


The package faker-biology is supported, but does depend on the following Snowflake supported native libraries you should include the following in your packages: ['python-dateutil', 'six', 'Faker']


Package faker-biology.zip created. You can now upload it to a stage (`snow package upload -f faker-biology.zip -s packages`) and reference it in your procedure or function.

The package faker-biology is supported, but does depend on the following Snowflake supported native libraries you should include the following in your packages: ['python-dateutil', 'six', 'Faker']

And I get a zip file that has the content in it. I don't know what all changed but seems this command has a few hiccups

Console output

No response

How to reproduce

No response

@github-actions github-actions bot changed the title snow snowpark package produces bad output SNOW-897742: snow snowpark package produces bad output Aug 22, 2023
@sfc-gh-jhollan sfc-gh-jhollan changed the title SNOW-897742: snow snowpark package produces bad output SNOW-897742: snow snowpark package produces empty zip Aug 22, 2023
@sfc-gh-pjob
Copy link
Contributor

Empty zip issue was fixed in #304
The fix should become a part of next release.
I'm closing this issue as it is for empty zip issue.

For command output there is already other issue: #271

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

No branches or pull requests

2 participants