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

Unzip doesn't work in SageMaker Studio using (Data Science) Python 3 #1181

Closed
ericangelokim opened this issue Apr 30, 2020 · 4 comments
Closed

Comments

@ericangelokim
Copy link
Contributor

https://github.com/awslabs/amazon-sagemaker-examples/blob/e463a7b158651a0a1888082a4673695a9acada73/introduction_to_applying_machine_learning/xgboost_direct_marketing/xgboost_direct_marketing_sagemaker.ipynb#L125

This line fails to unzip the data files in SageMaker Studio. Found when I was going through this blog: https://aws.amazon.com/blogs/aws/amazon-sagemaker-autopilot-fully-managed-automatic-machine-learning/

@ai2441
Copy link

ai2441 commented May 4, 2020

I'm having the same issue in several of the SageMaker Studio examples. My workaround is to unzip the file manually and then upload the individual files. But would be great if the command worked. :)

@neelamgehlot
Copy link
Contributor

Hi @ericangelokim and @ai2441 ,

Thank you for using Amazon SageMaker.

We are aware of the issue that unzip is missing in Data Science image and working on fixing it.

In the meantime, you can install unzip by running !conda install -y -c conda-forge unzip before using unzip.

Let us know if there is anything else we can help you with.

I am closing this issue for now, please feel free to re-open if suggested workaround doesn't work for you.

Thanks,
Neelam

@pavanipisupati
Copy link

pavanipisupati commented Oct 23, 2020

Hello fellas,
I was also on the same boat. But found a work around...This worked for me. Hope this helps!

  1. From within the SageMaker Studio interface, click the upload button and upload the ZIP file into SageMaker Studio:
    image

Next, go to File -> New -> Terminal to open a Terminal in the SageMaker Studio interface.
Once the Terminal is open, type sudo yum install -y unzip. This will install the unzip package, which we need in the following step.
image

Next, type unzip filename.zip in the Terminal. This will extract the lab files/directories, which will then appear within the left-hand file browser pane.
image

@jamcody
Copy link

jamcody commented Oct 6, 2023

Great solution, it works 👍

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

5 participants