Questions tagged [tar.gz]

29 questions
2
votes
3 answers

Try/Except to handle file write EOF errors

I have hundreds of .tar.gz files that come in a landing zone. The below python snippet runs on a schedule to extract these files and write the contents in another directory. import tarfile for f in files: with tarfile.open(f) as…
dkovacs
  • 49
  • 5
1
vote
0 answers

How to install R packages from source on fresh R installation?

Even when reinstalling R from scratch, I cannot install source packages with tar.gz files. Other users are also stuck at this step, which is highly annoying. I manage to do install R packages from source on my personal laptop, which has R4.3.1 and…
1
vote
1 answer

Open incomplete tar.gz file

I have a backup of my website that seems to have failed in the download and is incomplete. However there is still a lot of stuff in there. Is there a way to extract the archive to retrieve whatever is inside? I am on a Mac.
Coolcrab
  • 2,655
  • 9
  • 39
  • 59
1
vote
1 answer

Installing tar/tar.gz packages with npm install

My firewall blocks all *.tar.gz files from being downloaded. I need to manually whitelist all websites from which I download *.tar.gz files. I cannot find which URL I should whitelist to download packages using npm. Could you please help me on…
ionpoint
  • 861
  • 6
  • 10
1
vote
2 answers

Loading a spacy .tar.gz model artifact from s3 Sagemaker

I have a pretrained spacy model on a local folder that I can easily read with m = spacy.load("path/model/") But now I have to upload it as a .tar.gz file to use as a Sagemaker model artifact. How can I read this .tar.gz file? Ideally I want to read…
felipeformenti
  • 165
  • 1
  • 8
1
vote
0 answers

decompress tarfile from adls gen2 to synapse notebook

I have a tar.gz file in adls gen2 location and i need to load and decompress that file in the synapse notebook using pyspark for file in mssparkutils.fs.ls("synfs:/13/Input/ZippedFolder"): if file.name.endswith('.gz'): #print(file) …
1
vote
0 answers

How to extract a large tar.gz avoding memory usage in Linux

I have a tar.gz which has a large size (extracted file size is similar with 50GB), I want to extract it in Memory (or temp directory) When I extract file into memory using below script, the server memory is fully used (server memory is 64GB,…
Donghyun
  • 21
  • 2
1
vote
1 answer

Unzipping a GZip with PowerShell works but can I extract directly to file?

Internet is an amazing place to be, I found this code that allows me to inflate a tar.gz file to .tar: Function DeGZip-File{ Param( $infile, $outfile = ($infile -replace '\.gz$','') ) $input = New-Object…
Francesco Mantovani
  • 10,216
  • 13
  • 73
  • 113
0
votes
0 answers

Seurat Tutorial Help. I cannot get past this error message

I am doing this tutorial: https://satijalab.org/seurat/articles/pbmc3k_tutorial.html I always get the error message listed at the end! I cannot get past this! library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from…
0
votes
2 answers

How to ungz various .gz files kept in different folders?

I have various .gz files kept in different folders. A sample of the order of files is mentioned below. I want to ungz them and want them to be in the same folder as before (e.g. .gz files of Folder 1a should be remain in Folder 1a upon ungz-ing) and…
0
votes
1 answer

Does python has a functionality to upload tar.gz file from local pc to azure blob without extracting the files inside?

I have successfully downloaded tar.gz file from ftp server and have stored it in my local pc using below piece of code: data = BytesIO() save_file = ftp.retrbinary('RETR '+ filename, data.write, 1024) …
0
votes
2 answers

Find MD5 hash of files inside a tar.gz file in java without extracting it

I have a huge tar.gz file with lots of images in it. I need to find the md5 hash of each images. I am not able to find hash of images inside the tar file but same code works for normal folders and images. Is there any way to find hash without…
Anonymous
  • 1
  • 1
0
votes
0 answers

Error by reunite Multiple tar.gz Files of Certain Size

Does anyone have experience with splitting tar.gz and what could have gone wrong here and why some files are damaged during splitting? I split one "testFile.tar.gz" file into parts not larger than 2 GB. For…
Tesla
  • 29
  • 5
0
votes
0 answers

Compress directory to tar.gz with Commons Compress remove parent directory

I'm running into a problem using the commons compress library to create a tar.gz of a directory. I have a directory structure that is as follows. parent/ child/ file1.raw file2.raw file3.raw I hope the compressed…
OP027
  • 1
  • 2
0
votes
1 answer

How to combine multiple tar.gz files to one .tar.gz?

I want to combine multiple tar.gz files into one .tar.gz file with bash. I have a cronjob which creates regulary .sql.tar.gz files. Combining them should increase the compression ratio siginficantly. Meanwhile there are hundereds of them and…
pg0
  • 54
  • 1
  • 7
1
2