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

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

Open
M0rtenB opened this issue Jun 6, 2023 · 2 comments

Comments

@M0rtenB
Copy link

M0rtenB commented Jun 6, 2023

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'
@remidebette
Copy link

Hi, encountered the same issue

@meequz
Copy link

meequz commented Nov 8, 2023

encountered too

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

3 participants