[BangPypers] Extracting tar.gz file

murugadoss murugadoss2884 at gmail.com
Thu May 27 03:20:29 CEST 2010


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
<dhananjay.nene at gmail.com>wrote:

> On Thu, May 27, 2010 at 6:39 AM, Dhananjay Nene <dhananjay.nene at gmail.com
> >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 <murugadoss2884 at gmail.com
> >wrote:
> >
> >> 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 be opened successfully
> >>
> >> can anyone say me, what this error exactly and how to solve this?
> >>
> >> You may want to check out
>
> http://old.nabble.com/Re%3A-tarfile-doesn%27t-work-with-tgz-files--p23576622.html
>
>
> > Thanks in advance
> >> --
> >> Thanks & Regards
> >> V.Murugadoss
> >> _______________________________________________
> >> BangPypers mailing list
> >> BangPypers at python.org
> >> http://mail.python.org/mailman/listinfo/bangpypers
> >>
> >
> >
> >
> > --
> > --------------------------------------------------------
> > blog: http://blog.dhananjaynene.com
> > twitter: http://twitter.com/dnene
> >
>
>
>
> --
> --------------------------------------------------------
> blog: http://blog.dhananjaynene.com
> twitter: http://twitter.com/dnene
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list