Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathlib._Flavour AttributeError when importing audb (Python 3.12) #432

Open
maxschmitt opened this issue Jun 18, 2024 · 4 comments
Open

Comments

@maxschmitt
Copy link

In Python 3.12, I am facing the following error after installing and importing audb:

Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import audb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.local/lib/python3.12/site-packages/audb/__init__.py", line 1, in <module>
    from audb import info
  File "/home/user/.local/lib/python3.12/site-packages/audb/info/__init__.py", line 1, in <module>
    from audb.core.info import attachments
  File "/home/user/.local/lib/python3.12/site-packages/audb/core/info.py", line 8, in <module>
    from audb.core.api import dependencies
  File "/home/user/.local/lib/python3.12/site-packages/audb/core/api.py", line 7, in <module>
    import audbackend
  File "/home/user/.local/lib/python3.12/site-packages/audbackend/__init__.py", line 1, in <module>
    from audbackend import backend
  File "/home/user/.local/lib/python3.12/site-packages/audbackend/backend/__init__.py", line 6, in <module>
    from audbackend.core.backend.artifactory import Artifactory
  File "/home/user/.local/lib/python3.12/site-packages/audbackend/core/backend/artifactory.py", line 4, in <module>
    import artifactory
  File "/home/user/.local/lib/python3.12/site-packages/artifactory.py", line 425, in <module>
    class _ArtifactoryFlavour(pathlib._Flavour):
                              ^^^^^^^^^^^^^^^^
AttributeError: module 'pathlib' has no attribute '_Flavour'

Installed packages:

$ pip list
Package               Version
--------------------- --------------
attrs                 23.2.0
audb                  1.7.3
audbackend            2.0.1
audeer                2.0.0
audformat             1.1.4
audiofile             1.4.0
audmath               1.4.1
audobject             0.7.11
audresample           1.3.3
Babel                 2.10.3
bcc                   0.29.1
blinker               1.7.0
Brlapi                0.8.5
certifi               2023.11.17
cffi                  1.16.0
chardet               5.2.0
click                 8.1.6
cloud-init            24.1.3
colorama              0.4.6
command-not-found     0.3
configobj             5.0.8
cryptography          41.0.7
cupshelpers           1.0
dbus-python           1.3.2
defer                 1.0.6
distro                1.9.0
distro-info           1.7+build1
dohq-artifactory      0.10.0
filelock              3.15.1
httplib2              0.20.4
idna                  3.6
importlib_metadata    7.1.0
iso-639               0.4.5
iso3166               2.1.1
Jinja2                3.1.2
jsonpatch             1.32
jsonpointer           2.0
jsonschema            4.10.3
language-selector     0.1
launchpadlib          1.11.0
lazr.restfulclient    0.14.6
lazr.uri              1.0.6
louis                 3.29.0
markdown-it-py        3.0.0
MarkupSafe            2.1.5
mdurl                 0.1.2
netaddr               0.8.0
netifaces             0.11.0
numpy                 2.0.0
oauthlib              3.2.2
olefile               0.46
oyaml                 1.0
packaging             24.1
pandas                2.2.2
pathlib               1.0.1
pexpect               4.9.0
pillow                10.2.0
pip                   24.0
ptyprocess            0.7.0
pyarrow               16.1.0
pycairo               1.25.1
pycparser             2.22
pycups                2.0.1
Pygments              2.17.2
PyGObject             3.48.2
PyJWT                 2.7.0
pyparsing             3.1.1
pyrsistent            0.20.0
pyserial              3.5
python-apt            2.7.7+ubuntu1
python-dateutil       2.8.2
python-debian         0.1.49+ubuntu2
pytz                  2024.1
pyxdg                 0.28
PyYAML                6.0.1
requests              2.31.0
rich                  13.7.1
setuptools            68.1.2
six                   1.16.0
soundfile             0.12.1
systemd-python        235
tqdm                  4.66.4
typing_extensions     4.10.0
tzdata                2024.1
ubuntu-drivers-common 0.0.0
ubuntu-pro-client     8001
ufw                   0.36.2
unattended-upgrades   0.1
urllib3               2.0.7
wadllib               1.3.6
wheel                 0.42.0
xdg                   5
xkit                  0.0.0
zipp                  3.19.2
@hagenw
Copy link
Member

hagenw commented Jun 18, 2024

This is an upstream issue at devopshq/artifactory#430, and the reason why we cannot support Python 3.12 at the moment.

@hagenw
Copy link
Member

hagenw commented Jun 18, 2024

image

@hagenw
Copy link
Member

hagenw commented Jun 18, 2024

We faced already some issues due to the lack of an official Artifactory Python. I have not started to contribute to https://github.com/devopshq/artifactory/, as at the moment it is not sure if we stay with Artifactory or move to another solution.

Do you need to have Python 3.12?

@maxschmitt
Copy link
Author

Do you need to have Python 3.12?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants