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

ImportError: cannot import name '_NormalAccessor' from 'pathlib' (Python 3.11) #23

Open
jacebrowning opened this issue Oct 25, 2022 · 0 comments

Comments

@jacebrowning
Copy link

Python 3.11 appears to have removed a private class this library depends on:

Traceback (most recent call last):
  File ".../myapp.py", line 6, in <module>
    from aiopath import AsyncPath
  File ".../.venv/lib/python3.11/site-packages/aiopath/__init__.py", line 2, in <module>
    from .path import AsyncPath, AsyncPurePath, AsyncWindowsPath, \
  File ".../.venv/lib/python3.11/site-packages/aiopath/path.py", line 2, in <module>
    from pathlib import PosixPath, WindowsPath, _NormalAccessor, \
ImportError: cannot import name '_NormalAccessor' from 'pathlib' (~/.pyenv/versions/3.11.0rc2/lib/python3.11/pathlib.py)
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

1 participant