Max OSX Python 2.5.1 Stackless 3.1b3 breaks export
Bug #254791 reported by
Lucio Torre
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
python 2.5.1 stackless 3.1b3 is broken on Mac OSX; 2.5.2 works fine. The problem exhibits as an attempt to get the abspath of (None) when doing operations to a tarfile object with fileobj rather than a path given to the constructor.
description: | updated |
tags: | added: mac |
tags: | added: check-for-breezy |
To post a comment you must log in.
On Mon, 2008-08-04 at 21:59 +0000, Lucio Torre wrote:
> Public bug reported:
>
> Mac OS X 10.4, python2.5
>
> running "make check" fails after 204 tests on test_tar_export.
> File "/Users/ lucio/Projects/ canonical/ bzr.dev/ bzrlib/ export/ tar_exporter. py", line 40, in tar_exporter Frameworks/ Python. framework/ Versions/ 2.5/lib/ python2. 5/tarfile. py", line 1168, in open Frameworks/ Python. framework/ Versions/ 2.5/lib/ python2. 5/tarfile. py", line 1047, in __init__ abspath( name) Frameworks/ Python. framework/ Versions/ 2.5/lib/ python2. 5/posixpath. py", line 402, in abspath Frameworks/ Python. framework/ Versions/ 2.5/lib/ python2. 5/posixpath. py", line 49, in isabs
> ball = tarfile.open(None, 'w|' + compression, sys.stdout)
> File "/Library/
> _Stream(name, filemode, comptype, fileobj, bufsize))
> File "/Library/
> self.name = os.path.
> File "/Library/
> if not isabs(path):
> File "/Library/
> return s.startswith('/')
> AttributeError: 'NoneType' object has no attribute 'startswith'
This appears to be a python bug.
pydoc tarfile.open ->
tarfile.open = open(cls, name=None, mode='r', fileobj=None,
bufsize=10240)
We're passing no name and a fileobj of sys.stdout - your tarfile.py is
being bogus by trying to get the abs path for None.
Are you running a release python?
-Rob www.robertcolli ns.net/ keys.txt>.
--
GPG key available at: <http://