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

Sync error: TypeError: sequence item 6: expected str instance, PosixPath found #374

Open
tony opened this issue Jun 1, 2022 · 0 comments

Comments

@tony
Copy link
Member

tony commented Jun 1, 2022

vcspull --version
vcspull 1.13.0a4, libvcs 0.13.0a13
❯ vcspull sync pytest
abort: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/home/t/.local/bin/vcspull", line 8, in <module>
    sys.exit(cli.cli())
  File "/home/t/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/t/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/t/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/t/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/t/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/t/.local/lib/python3.10/site-packages/vcspull/cli/sync.py", line 89, in sync
    list(map(update_repo, found_repos))
  File "/home/t/.local/lib/python3.10/site-packages/vcspull/cli/sync.py", line 104, in update_repo
    r.update_repo(set_remotes=True)  # Creates repo if not exists and fetches
  File "/home/t/.local/lib/python3.10/site-packages/libvcs/projects/hg.py", line 37, in update_repo
    self.obtain()
  File "/home/t/.local/lib/python3.10/site-packages/libvcs/projects/hg.py", line 28, in obtain
    self.run(["clone", "--noupdate", "-q", "--", self.url, self.dir])
  File "/home/t/.local/lib/python3.10/site-packages/libvcs/projects/base.py", line 154, in run
    return run(
  File "/home/t/.local/lib/python3.10/site-packages/libvcs/_internal/run.py", line 287, in run
    raise exc.CommandError(output=output, returncode=code, cmd=args)
  File "/home/t/.local/lib/python3.10/site-packages/libvcs/exc.py", line 20, in __init__
    cmd = " ".join(cmd)
TypeError: sequence item 6: expected str instance, PosixPath found
@tony tony changed the title Sync error Sync error: TypeError: sequence item 6: expected str instance, PosixPath found Jun 1, 2022
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

1 participant