Message146800
I am trying to unpack boost_1_46_1.tar.bz2 (you can grab it here http://mirror.its.dal.ca/gentoo/distfiles/boost_1_46_1.tar.bz2) with the following code:
import tarfile
t = tarfile.open( "boost_1_46_1.tar.bz2" );
t.extractall()
On OSX (both Lion and Snow Leopard, so python 2.7.1 and 2.6.1 resp.) this works as a normal user, but not as root failing with:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tarfile.py", line 2028, in extractall
self.extract(tarinfo, path)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tarfile.py", line 2065, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tarfile.py", line 2157, in _extract_member
self.chown(tarinfo, targetpath)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tarfile.py", line 2269, in chown
os.chown(targetpath, u, g)
OverflowError: signed integer is greater than maximum
I have confirmed that Python is running as a 64bit application on OSX.
On my 64bit Linux (gentoo) machine, this works both as a user and as root. I tried with Python 2.7.2 as well as downgrading to 2.7.1.
This could be related to 1215928 |
|
Date |
User |
Action |
Args |
2011-11-01 18:17:21 | Dave.Flogeras | set | recipients:
+ Dave.Flogeras |
2011-11-01 18:17:21 | Dave.Flogeras | set | messageid: <1320171441.51.0.618008041157.issue13315@psf.upfronthosting.co.za> |
2011-11-01 18:17:20 | Dave.Flogeras | link | issue13315 messages |
2011-11-01 18:17:20 | Dave.Flogeras | create | |
|