473,396 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to decompress .Z file?

Hi, all

How can .Z file be decompressed?

According to python library reference, .Z file might not be supported by
python, yet.

Hyunchul Kim
Aug 20 '07 #1
2 5496
On Aug 20, 9:02 am, Hyunchul Kim <sun...@sfc.keio.ac.jpwrote:
How can .Z file be decompressed?

According to python library reference, .Z file might not be supported by
python, yet.

Guess you can *outsource* the process to 7zip:


It supports .z archives.


Aug 20 '07 #2
Hyunchul Kim <su****@sfc.keio.ac.jpwrote:
How can .Z file be decompressed?
The old unix program compress used to generate these files.


You'll find the command line programs gzip/gunzip/zcat can decompress
them too.
According to python library reference, .Z file might not be
supported by python, yet.
Unfortunately the python gzip library doesn't read .Z files.

I'd pipe the data to zcat using subprocess to decompress from python.

I haven't used a .Z files for many many years - where are you getting
them from?

Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Aug 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: enrio | last post by:
I have a string which I try to decompress: body = zlib.decompress(body) but I get zlib.error: Error -3 while decompressing data: incorrect header check However, I can write the string to...
by: Dante | last post by:
Hello, When I try to decompress a response from a web service I'm getting the error: "hexadecimal value 0x1F, is an invalid character. Line 1, position 1." The web server is an apache server....
by: umberto | last post by:
Hello, I know that I can process txt files using ASP scrips. But there is a compressed text file (with Winzip) that I want to list on my web page. Is there possibility to decompress it on server...
by: JBear | last post by:
Can anyone tell me how to decompress a zip file containing multiple files (but no folder) using a class in the System.IO.Compression namespace? I'm trying to decompress a Google Earth KMZ file,...
by: Frederik Vanderhaegen | last post by:
Hi, I'm writing an application who 'sniffs' port 80. The sniffing works 'perfect', I receive a byte array with the data sent over the port. My problem is the following, when I write the array...
by: Carly | last post by:
Hello, I am just wondering if somebody can look on this piece of code and let me know what is wrong with DECOMPRESSION. Dim mystr As String = "flower power" 'deflate Dim mybytearray() As...
by: minhchieu | last post by:
Hi all, I'm a new with SharpZipLib. I want to zip a folder which has some files and subfolders, and unzip it to a new folder with the same structure. Now i can zip the folder. This is my code. //...
by: shabda raaj | last post by:
I have a VPS server with fedora 7. I wanted to install easy_install on this server, but I got an error saying unable to open /usr/lib/ python2.5/config/Makefile (No such file or directory). So I...
by: Academia | last post by:
It is not possible to change the compression status of a File using the SetAttributes method. Is there a way to decompress a file programmatically? Of set the files properties so that the...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.