Re: [BangPypers] ReadError: opening tar file

2010-06-08 Thread Senthil Kumaran
On Tue, Jun 08, 2010 at 02:26:18PM +0530, Anand Balachandran Pillai wrote: > On Tue, Jun 8, 2010 at 2:17 PM, Senthil Kumaran wrote: > > > On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > > > >>>import tarfile > > > > >>>tarfile.open("*.tar.gz","r:gz") > > > > > Impor

Re: [BangPypers] ReadError: opening tar file

2010-06-08 Thread Anand Balachandran Pillai
On Tue, Jun 8, 2010 at 2:17 PM, Senthil Kumaran wrote: > On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > > >>>import tarfile > > > >>>tarfile.open("*.tar.gz","r:gz") > > > > ImportError: No module named zlib > > > > I agree that the error message could be more > > d

Re: [BangPypers] ReadError: opening tar file

2010-06-08 Thread Senthil Kumaran
On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > >>>import tarfile > > >>>tarfile.open("*.tar.gz","r:gz") > > > ImportError: No module named zlib > > I agree that the error message could be more > descriptive. In this case looks like the tarfile module is masking > the

Re: [BangPypers] ReadError: opening tar file

2010-06-07 Thread Anand Balachandran Pillai
On Mon, Jun 7, 2010 at 11:22 AM, Baiju M wrote: > On Mon, Jun 7, 2010 at 6:40 AM, murugadoss > wrote: > > Hi, > > Good Morning. > > > > 1. > > This is regarding installing python in 64-bit linux pc. one of the issue, > > which we were talking earlier. It was recommended to install python with >

Re: [BangPypers] ReadError: opening tar file

2010-06-07 Thread Sridhar Ratnakumar
On Sun, Jun 6, 2010 at 6:10 PM, murugadoss wrote: > 1. > This is regarding installing python in 64-bit linux pc. one of the issue, > which we were talking earlier. It was recommended to install python with > 32-bit gcc compiler in 64-bit m/c. > step: > while installing python in 64-bit m/c, try us

Re: [BangPypers] ReadError: opening tar file

2010-06-06 Thread Baiju M
On Mon, Jun 7, 2010 at 6:40 AM, murugadoss wrote: > Hi, > Good Morning. > > 1. > This is regarding installing python in 64-bit linux pc. one of the issue, > which we were talking earlier. It was recommended to install python with > 32-bit gcc compiler in 64-bit m/c. > step: > while installing pyth

Re: [BangPypers] ReadError: opening tar file

2010-06-06 Thread murugadoss
Hi, Good Morning. 1. This is regarding installing python in 64-bit linux pc. one of the issue, which we were talking earlier. It was recommended to install python with 32-bit gcc compiler in 64-bit m/c. step: while installing python in 64-bit m/c, try using export CC='gcc -m32' ./configure --prefi

Re: [BangPypers] ReadError: opening tar file

2010-06-06 Thread Sridhar Ratnakumar
Hi Murugadoss, Try Python 2.5.5 (the latest 2.5 release), and if this problem still occurs, please report a bug at bugs.python.org with full steps to reproduce, including the original tarfile as an attachment. C:\Python25\Lib\tarfile.py is a pure Python module; so if you are inclined, you may deb

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Praveen Kumar
I doubt it whether V.Murugadoss has file itself correct? Is he able to extract the file with other compression program. On Fri, Jun 4, 2010 at 6:21 PM, Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 6:16 PM, Anand Balachandran Pillai > wrote: > [..] > > Well, that is getting to the raw basics

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Noufal Ibrahim
On Fri, Jun 4, 2010 at 6:16 PM, Anand Balachandran Pillai wrote: [..] >  Well, that is getting to the raw basics. If it turns out to be that you > didn't >  have permission to read the file in the first place..., nothing more >  to say - you managed to waste the time of whoever replied to this thr

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Anand Balachandran Pillai
On Fri, Jun 4, 2010 at 6:16 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > > > On Fri, Jun 4, 2010 at 5:44 PM, Noufal Ibrahim wrote: > >> On Fri, Jun 4, 2010 at 4:55 PM, murugadoss >> wrote: >> [..] >> > Initially the program is written in the 32-bit linux pc. It is >> completely >

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Anand Balachandran Pillai
On Fri, Jun 4, 2010 at 5:44 PM, Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 4:55 PM, murugadoss > wrote: > [..] > > Initially the program is written in the 32-bit linux pc. It is completely > > working here. Today, i loaded the same program in the server pc (which is > a > > 64-bit x86 pc), i

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Noufal Ibrahim
On Fri, Jun 4, 2010 at 4:55 PM, murugadoss wrote: [..] > Initially the program is written in the 32-bit linux pc. It is completely > working here. Today, i loaded the same program in the server pc (which is a > 64-bit x86 pc), i end up with issue. [..] This is weird. Can you manually untar your f

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread murugadoss
It is for collecting the binary data from the client system. wherein the binary data is sent in tar.gz format. The exact task is to collect the data, untar and do the processing. Initially the program is written in the 32-bit linux pc. It is completely working here. Today, i loaded the same progra

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Anand Balachandran Pillai
On Fri, Jun 4, 2010 at 4:15 PM, murugadoss wrote: > Thank for the reply. > The tar file is not corrupted, i am using the same file in 32-bit m/c and > able to extract it. I have attached this output also with the mail. > I am getting this problem only in 64-bit m/c. > And what is this whole exe

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread murugadoss
Thank for the reply. The tar file is not corrupted, i am using the same file in 32-bit m/c and able to extract it. I have attached this output also with the mail. I am getting this problem only in 64-bit m/c. output from 32-bit m/c: tarfile.is_tarfile(tar) func > func1 True For reference i have

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Anand Balachandran Pillai
On Fri, Jun 4, 2010 at 11:27 AM, murugadoss wrote: > Hello, > > I am trying to extract a tar file. while doing this i check the valid tar > file using is_tarfile( ). > It is working fine in a 32-bit linux machine with python 2.5.4 version and > when i try it out in a 64-bit linux pc, i end up sayi

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread Senthil Kumaran
On Fri, Jun 04, 2010 at 07:18:56PM +0900, murugadoss wrote: > Further, on debug i got to know in tarfile.py (library file) function open( On man, you went too far. > > >>>tar = /root/testtar.tar.gz Is this is a tarfile? Answer is No. -- Senthil ___

Re: [BangPypers] ReadError: opening tar file

2010-06-04 Thread murugadoss
Further, on debug i got to know in tarfile.py (library file) function open( ) (Line 1147) where it is return the file attributes is failing, I am not able to make out the exact reason, why it is failing in 64-bit M/c , but the same is working in 32-bit M/c I have attached the part code with the m