[issue21917] Python 2.7.7 Tests fail, and math is faulty

Phil Elson report at bugs.python.org
Wed Oct 29 18:37:44 CET 2014


Phil Elson added the comment:

I just wanted to say that I am seeing the same issue with similar build flags for the xlc compiler.

Finding the correct compile flags may well be the problem here.

For the record, since I think this is related to the flags which are being passed to os.open, I've been looking at the following:

http://bugs.python.org/issue19749
https://github.com/pypa/pip/issues/849

I actually have access to a python2.7 which does work on this OS (which I didn't compile), which allowed me to identify the following difference:


$> ./python
Python 2.7.8 [C] on aix7
>>> import os; print os..O_NOFOLLOW
137438953472


$> /usr/bin/python
Python 2.7.6 [C] on aix7
>>> import os; print os.O_NOFOLLOW
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'O_NOFOLLOW'



My workaround therefore is to put the following in sitecustomize:

import os; os.__dict__.pop('O_NOFOLLOW', None)

And as a result "make test" no longer fails.

Any idea what it is we're missing in the configure step which is erroneously putting O_NOFOLLOW in os?

----------
nosy: +pelson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21917>
_______________________________________


More information about the Python-bugs-list mailing list