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 <rep...@bugs.python.org> <http://bugs.python.org/issue21917> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com