alexdelorenzo / aiopath

📁 Asynchronous pathlib for Python
https://alexdelorenzo.dev
GNU Lesser General Public License v3.0
162 stars 6 forks source link

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

Open jacebrowning opened 2 years ago

jacebrowning commented 2 years ago

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)