Re: [BangPypers] Extracting tar.gz file

2010-05-26 Thread Dhananjay Nene
On Thu, May 27, 2010 at 6:51 AM, murugadoss wrote: > Hello, > Thanks for the Reply. > I am able to extract the file manually, using "tar -xzvf sample.tar.gz" > command. > Probably needs a "r;gz" mode instead of just "r" >From the tarfile module doc : tarfile.open(*name=None*, *mode='r'*, *fileob

Re: [BangPypers] Extracting tar.gz file

2010-05-26 Thread murugadoss
Hello, Thanks for the Reply. I am able to extract the file manually, using "tar -xzvf sample.tar.gz" command. -- Thanks & Regards V.Murugadoss On Thu, May 27, 2010 at 10:09 AM, Dhananjay Nene wrote: > Instinctively, the error seems to be opening the file and not with the > tarfile decoding. > Yo

Re: [BangPypers] Extracting tar.gz file

2010-05-26 Thread murugadoss
Hello, Thanks for the Reply. I am able to extract the file manually, using "tar -xzvf sample.tar.gz" command. -- Thanks & Regards V.Murugadoss On Thu, May 27, 2010 at 10:11 AM, Dhananjay Nene wrote: > On Thu, May 27, 2010 at 6:39 AM, Dhananjay Nene >wrote: > > > Instinctively, the error seems

Re: [BangPypers] Extracting tar.gz file

2010-05-26 Thread Dhananjay Nene
On Thu, May 27, 2010 at 6:39 AM, Dhananjay Nene wrote: > Instinctively, the error seems to be opening the file and not with the > tarfile decoding. > You may want to check if open("sample.tar.gz","r") works. > > Dhananjay > > > On Thu, May 27, 2010 at 6:19 AM, murugadoss wrote: > >> Hi all, >> >>

Re: [BangPypers] Extracting tar.gz file

2010-05-26 Thread Dhananjay Nene
Instinctively, the error seems to be opening the file and not with the tarfile decoding. You may want to check if open("sample.tar.gz","r") works. Dhananjay On Thu, May 27, 2010 at 6:19 AM, murugadoss wrote: > Hi all, > > I am trying to extract tar.gz file using python script. when i do so, i g

[BangPypers] Extracting tar.gz file

2010-05-26 Thread murugadoss
Hi all, I am trying to extract tar.gz file using python script. when i do so, i get an error, tar = tarfile.open("sample.tar.gz","r") File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open raise ReadError("file could not be opened successfully") tarfile.ReadError: file could not