aiopath icon indicating copy to clipboard operation
aiopath copied to clipboard

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

Open jacebrowning opened this issue 2 years ago • 0 comments

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)

jacebrowning avatar Oct 25 '22 19:10 jacebrowning