By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,985 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,985 IT Pros & Developers. It's quick & easy.

How to decompress .Z file?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.