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

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

Closed
Ch3ri0ur opened this issue Sep 6, 2022 · 2 comments
Closed
Labels
Bug Help Wanted We will be glad if somebody proposes a solution via PR

Comments

@Ch3ri0ur
Copy link

Ch3ri0ur commented Sep 6, 2022

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
Copy link
Contributor

donhui commented Sep 6, 2022

pathlib._Accessor was removed from Python 3.11: python/cpython#25701 .

@allburov allburov added the Help Wanted We will be glad if somebody proposes a solution via PR label Sep 7, 2022
@allburov allburov changed the title AttributeError: module 'pathlib' has no attribute '_Accessor' python3.11 - AttributeError: module 'pathlib' has no attribute '_Accessor' Sep 7, 2022
@allburov allburov added the Bug label Sep 7, 2022
@donhui
Copy link
Contributor

donhui commented Sep 11, 2022

I think this issue can be closed. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Help Wanted We will be glad if somebody proposes a solution via PR
Development

No branches or pull requests

3 participants