devopshq / artifactory

dohq-artifactory: a Python client for Artifactory
https://devopshq.github.io/artifactory/
MIT License
273 stars 144 forks source link

python3.11 - AttributeError: module 'pathlib' has no attribute '_Accessor' #372

Closed Ch3ri0ur closed 2 years ago

Ch3ri0ur commented 2 years ago

Hi, I was testing Python 3.11 and stumbled upon this error and thought I'd bring it up.

import artifactory
File "/home/***************/venv/lib/python3.11/site-packages/artifactory.py", line 640, in <module>
    class _ArtifactoryAccessor(pathlib._Accessor):
                               ^^^^^^^^^^^^^^^^^
AttributeError: module 'pathlib' has no attribute '_Accessor'

I am on WSL2, and Python 3.11rc1.

donhui commented 2 years ago

pathlib._Accessor was removed from Python 3.11: https://github.com/python/cpython/pull/25701 .

donhui commented 2 years ago

I think this issue can be closed. 😄