alexdelorenzo/aiopath

TypeError: PurePath._from_parts() got an unexpected keyword argument 'init'

M0rtenB opened this issue · 2 comments

Using aiopath 0.6.11 in a Starlette project. Used await path.resolve() Think this is on you:

<PROJECT>/.venv/lib/python3.11/site-packages/aiopath/path.py:571 in resolve
   568 │
   569 │   # Now we have no symlinks in the path, it's safe to normalize it.
   570 │   normed: str = self._flavour.pathmod.normpath(s)
 ❱ 571 │   obj = self._from_parts((normed,), init=False)
   572 │   obj._init(template=self)
   573 │   return obj
TypeError: PurePath._from_parts() got an unexpected keyword argument 'init'

Hi, encountered the same issue

meequz commented

encountered too