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

pget cannot extract tar file generated on MacOS #166

Closed
simonpicard opened this issue Feb 19, 2024 · 2 comments
Closed

pget cannot extract tar file generated on MacOS #166

simonpicard opened this issue Feb 19, 2024 · 2 comments

Comments

@simonpicard
Copy link

Hi team, many thanks for your great work.

I am using pget on replicate, deployed via cog.
When downloading a tar file via pget, I get the following error:

Error: error writing file: error extracting file: archive/tar: invalid tar header

The tar file I am attempting to extract has been created on MacOS via the following command:

tar -czvf my-folder.tar my-folder

The archive is then uploaded to AWS S3 and downloaded from there via pget.
The archive can be extracted without error on MacOS using the built-in extractor.

Could you please help me solve the issue?

@tempusfrangit
Copy link
Member

Pget is currently unable to handle gzipped tar files. Sincr you are passing z to tar I am assuming it's a gzipped tar file.

See #1. It is on the list for enhancement requests. But it hasn't been a huge priority as weights tend to not compress well. For now an uncompressed tar is recommended with pget. We will continue to evaluate when we tackle enhancements like adding gzip support.

@tempusfrangit
Copy link
Member

This will be addressed by #183

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