Skip to content

xattr support missing in os module under cygwin #90026

Closed

Description

@enok2
mannequin
BPO 45868
Nosy @iritkatriel
Superseder
  • 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 = None
    closed_at = <Date 2022-01-23.20:10:01.267>
    created_at = <Date 2021-11-22.12:39:12.588>
    labels = ['type-bug', '3.8', 'build']
    title = 'xattr support missing in os module under cygwin'
    updated_at = <Date 2022-01-23.20:10:01.266>
    user = 'https://bugs.python.org/enok2'

    bugs.python.org fields:

    activity = <Date 2022-01-23.20:10:01.266>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-23.20:10:01.267>
    closer = 'iritkatriel'
    components = ['Build']
    creation = <Date 2021-11-22.12:39:12.588>
    creator = 'enok2'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45868
    keywords = []
    message_count = 4.0
    messages = ['406768', '411414', '411415', '411417']
    nosy_count = 2.0
    nosy_names = ['iritkatriel', 'enok2']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = '45537'
    type = 'behavior'
    url = 'https://bugs.python.org/issue45868'
    versions = ['Python 3.8']

    Linked PRs

    Activity

    1. enok2 commented on Nov 22, 2021

      enok2mannequin
      MannequinAuthor

      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.

    2. added
      type-crashA hard crash of the interpreter, possibly with a core dump
      buildThe build process and cross-build
      on Nov 22, 2021
    3. iritkatriel commented on Jan 23, 2022

      @iritkatriel
      Member

      This is listed in the docs as a linux-only feature:

      https://docs.python.org/3/library/os.html#linux-extended-attributes

    4. added
      type-bugAn unexpected behavior, bug, or error
      and removed
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Jan 23, 2022
    5. enok2 commented on Jan 23, 2022

      enok2mannequin
      MannequinAuthor

      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 ...

    6. 12 remaining items

    7. philcerf commented on May 30, 2023

      @philcerf
      Contributor

      @iritkatriel Since I'm working on getting this done, can you please re-open this issue?

    8. added
      3.13only security fixes
      and removed on May 30, 2023
    9. added a commit that references this issue on May 30, 2023
    10. philcerf commented on Jun 26, 2023

      @philcerf
      Contributor

      Hey @iritkatriel.

      Since you're core developer... any chance that you could perhaps review my proposed PR for this? 😇
      Would be awesome.

      Thanks,
      Philippe

    11. added a commit that references this issue on Aug 14, 2023
    12. added a commit that references this issue on Oct 21, 2023
    13. added a commit that references this issue on Nov 2, 2023
    14. added a commit that references this issue on Nov 3, 2023
    15. encukou commented on Nov 3, 2023

      @encukou
      Member

      Thanks for the fix!

      For reference: Cygwin is unsupported platform, meaning we don't test it. The feature may break in the future.

    16. added a commit that references this issue on Feb 11, 2024
    17. added a commit that references this issue on Sep 2, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.13only security fixesOS-windowsbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions