[Pythonmac-SIG] tarfile fails silently on 10.4?

Ronald Oussoren ronaldoussoren at mac.com
Sat Jan 20 17:48:02 CET 2007


On 20 Jan, 2007, at 15:33, Nir Soffer wrote:

> I used to use tarfile on 10.3 to extract a bz2 compressed tarball. I
> tried the code today on 10.4, and untaring fail silently after about
> 5% of tarball content, without any error.
>
> This is the failing code:
>
>          tar = tarfile.open(os.path.join(SHARE, 'underlay.tar.bz2'),
> mode='r:bz2')
>          for member in tar:
>              tar.extract(member, WIKI)
>          tar.close()
>
> The tarball contains 794 pages, but this code will extract only 47
> pages. Again, this used to work correctly about 1 year ago with  
> 10.3.7.

The script looks fine. How did you create the archive?

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3562 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20070120/7a435a7a/attachment.bin 


More information about the Pythonmac-SIG mailing list