[Pythonmac-SIG] tarfile fails silently on 10.4?
Nir Soffer
nirs at freeshell.org
Sun Jan 21 23:19:48 CET 2007
On Jan 20, 2007, at 18:48, Ronald Oussoren 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?
The original tar was created on Linux around a year ago, I don't know
how it was created. Trying to extract the original file fail after 42
members.
I extracted the tarball and created it again with /usr/bin/tar (GNU
tar) 1.14. This version seems to be the same version installed by
default on 10.4.8. Trying to extract the new tarball fail after 47
members.
Best Regards,
Nir Soffer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20070122/6d1f98c0/attachment.htm
More information about the Pythonmac-SIG
mailing list