Skip to content

Python >= 3.12 - AttributeError: '_ArtifactoryFlavour' object has no attribute 'isabs' #480

@pdatkinson

Description

@pdatkinson

This error does not appear in versions 3.10.6 or 3.11.11 and does appear in versions 3.12.7, 3.12.8, 3.13.1.

for v in 3.10.6 3.11.11 3.12.7 3.12.8 3.13.1; do # versions I happen to have installed
    /path/to/pyenv/versions/${v}/bin/python -c 'import artifactory; print(artifactory.ArtifactoryPath("https://artifactory.com").as_uri())' &> /dev/null && echo ${v} works || echo ${v} broken;
done
3.10.6 works
3.11.11 works
3.12.7 broken
3.12.8 broken
3.13.1 broken
$ /path/to/pyenv/versions/3.13.1/bin/python -c 'import artifactory; print(artifactory.ArtifactoryPath("https://artifactory.com").as_uri())'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import artifactory; print(artifactory.ArtifactoryPath("https://artifactory.com").as_uri())
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/path/to/pyenv/versions/3.13.1/lib/python3.13/pathlib/_local.py", line 430, in as_uri
    if not self.is_absolute():
           ~~~~~~~~~~~~~~~~^^
  File "/path/to/pyenv/versions/3.13.1/lib/python3.13/pathlib/_local.py", line 415, in is_absolute
    return self.parser.isabs(self)
           ^^^^^^^^^^^^^^^^^
AttributeError: '_ArtifactoryFlavour' object has no attribute 'isabs'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedWe will be glad if somebody proposes a solution via PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions