+
Skip to content

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

@M0rtenB

Description

@M0rtenB

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载