You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xattr support missing in os module under cygwin #90026
bpo-45537: Cygwin is unsupported - close all open issues and list them here.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2022-01-23.20:10:01.267>created_at=<Date2021-11-22.12:39:12.588>labels= ['type-bug', '3.8', 'build']
title='xattr support missing in os module under cygwin'updated_at=<Date2022-01-23.20:10:01.266>user='https://bugs.python.org/enok2'
With the latest Python 3.8.10 under cygwin the following fails:
>>> import os
>>> os.listxattr('.')
Traceback (most recent call last):
File "<stdin>", line 1, in < module>
AttributeError: module 'os' has no attribute 'listxattr'
/usr/include/attr/xattr.h declares the corresponding library functions, so something must be wrong in the configuration/compilation of python itself.
Activity
enok2 commentedon Nov 22, 2021
With the latest Python 3.8.10 under cygwin the following fails:
/usr/include/attr/xattr.h declares the corresponding library functions, so something must be wrong in the configuration/compilation of python itself.
iritkatriel commentedon Jan 23, 2022
This is listed in the docs as a linux-only feature:
https://docs.python.org/3/library/os.html#linux-extended-attributes
enok2 commentedon Jan 23, 2022
Perhaps it could be supported under cygwin though without too much effort? Most likely just a configuration fix?
After all, cygwin is a sort of linux ...
12 remaining items
philcerf commentedon May 30, 2023
@iritkatriel Since I'm working on getting this done, can you please re-open this issue?
pythongh-90026: support XATTRs on Cygwin (python#90026)
philcerf commentedon Jun 26, 2023
Hey @iritkatriel.
Since you're core developer... any chance that you could perhaps review my proposed PR for this? 😇
Would be awesome.
Thanks,
Philippe
pythongh-90026: support XATTRs on Cygwin (python#90026)
pythongh-90026: support XATTRs on Cygwin (python#90026)
pythongh-90026: support XATTRs on Cygwin (python#90026)
gh-90026: support XATTRs on Cygwin (GH-105075)
encukou commentedon Nov 3, 2023
Thanks for the fix!
For reference: Cygwin is unsupported platform, meaning we don't test it. The feature may break in the future.
pythongh-90026: support XATTRs on Cygwin (pythonGH-105075)
pythongh-90026: support XATTRs on Cygwin (pythonGH-105075)