[issue24538] os.setxattr PermissionError on panfs propagates up causing `copystat`, `copytree`, and `pip install .` to fail unhepfully

Bart Oldeman report at bugs.python.org
Wed Sep 6 13:50:12 EDT 2017


Bart Oldeman added the comment:

The issue can be avoided by calling _copyxattr *before* instead of after os.chmod in shutil.copystat. That way the file is still writable.

The same issue happens on the Lustre parallel file system, with the lustre.lov extended attribute.

----------
nosy: +Bart Oldeman

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


More information about the Python-bugs-list mailing list