469,641 Members | 1,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

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.

Best,
Hyunchul Kim
Aug 20 '07 #1
2 4822
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:

http://7-zip.org/download.html

It supports .z archives.

Lorenzo

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.

http://packages.debian.org/unstable/utils/ncompress

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by enrio | last post: by
reply views Thread by JBear | last post: by
4 posts views Thread by Frederik Vanderhaegen | last post: by
1 post views Thread by Carly | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.