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
In Python 3.13.1 on Mac OSX, installing and using artifactory-du in a new venv yields:
Traceback (most recent call last):
File "/Users/testworksau/venvs/artifactorydu/bin/artifactory-du", line 5, in <module>
from artifactory_du.artifactory_du import main
File "/Users/testworksau/venvs/artifactorydu/lib/python3.13/site-packages/artifactory_du/artifactory_du.py", line 7, in <module>
from artifactory import ArtifactoryPath
File "/Users/testworksau/venvs/artifactorydu/lib/python3.13/site-packages/artifactory.py", line 429, in <module>
class _ArtifactoryFlavour(object if IS_PYTHON_3_12_OR_NEWER else pathlib._Flavour):
...<178 lines>...
return drv + root + part
File "/Users/testworksau/venvs/artifactorydu/lib/python3.13/site-packages/artifactory.py", line 447, in _ArtifactoryFlavour
pathmod = pathlib.posixpath
^^^^^^^^^^^^^^^^^
AttributeError: module 'pathlib' has no attribute 'posixpath'. Did you mean: 'PosixPath'?
Modifying this code:
class _ArtifactoryFlavour(object if IS_PYTHON_3_12_OR_NEWER else pathlib._Flavour):
"""
Implements Artifactory-specific pure path manipulations.
I.e. what is 'drive', 'root' and 'path' and how to split full path into
components.
See 'pathlib' documentation for explanation how those are used.
drive: in context of artifactory, it's the base URI like
http://mysite/artifactory
root: like in unix, / when absolute, empty when relative
path: relative artifact path within the repository
"""
sep = "/"
altsep = "/"
has_drv = True
pathmod = pathlib.posixpath
is_supported = True
to the following:
class _ArtifactoryFlavour(object if IS_PYTHON_3_12_OR_NEWER else pathlib._Flavour):
"""
Implements Artifactory-specific pure path manipulations.
I.e. what is 'drive', 'root' and 'path' and how to split full path into
components.
See 'pathlib' documentation for explanation how those are used.
drive: in context of artifactory, it's the base URI like
http://mysite/artifactory
root: like in unix, / when absolute, empty when relative
path: relative artifact path within the repository
"""
sep = "/"
altsep = "/"
has_drv = True
pathmod = pathlib.PosixPath
is_supported = True
In Python 3.13.1 on Mac OSX, installing and using
artifactory-du
in a newvenv
yields:Modifying this code:
to the following:
resolves the issue for me.
pip3 list:
The text was updated successfully, but these errors were encountered: