Skip to content

ArtifactoryPath.glob() failing on Python versions >= 3.11.4 #432

@BradyBuchanan

Description

@BradyBuchanan

Recently, upon upgrading some machines to use Python 3.11.4, a script I use for cleaning up artifacts has stopped working, throwing the following error:

File "C:\ci-scripts\cleanup.py", line 117, in clean_up for p in repo_path.glob("**/*.zip"): File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 953, in glob for p in selector.select_from(self): File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 407, in _select_from for starting_point in self._iterate_directories(parent_path, is_dir, scandir): File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 391, in _iterate_directories entry_is_dir = entry.is_dir(follow_symlinks=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This seems to affect versions 3.11.4 and higher of Python, since this same script worked fine testing it with 3.11.0 up to 3.11.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugHelp WantedWe will be glad if somebody proposes a solution via PRquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions