Skip to content

Uncaught ValueError in ntpath.py line 807 #3704

Open

Description

@rahxosp

Aider version: 0.76.2
Python version: 3.10.11
Platform: Windows-10-10.0.22621-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 10 (64bit)
Git version: git version 2.49.0.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "__main__.py", line 7, in <module>
    sys.exit(main())
  File "main.py", line 1075, in main
    coder.run()
  File "base_coder.py", line 842, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 889, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1433, in send_message
    self.reply_completed()
  File "architect_coder.py", line 36, in reply_completed
    editor_coder = Coder.create(**new_kwargs)
  File "base_coder.py", line 181, in create
    res = coder(main_model, io, **kwargs)
  File "base_coder.py", line 440, in __init__
    self.root = utils.find_common_root(self.abs_fnames)
  File "utils.py", line 307, in find_common_root
    return safe_abs_path(os.path.commonpath(list(abs_fnames)))
  File "ntpath.py", line 807, in commonpath
    raise ValueError("Paths don't have the same drive")
ValueError: Paths don't have the same drive

Activity

  1. DZH166 commented on Nov 2, 2026

    @DZH166

    I've reproduced this cross-drive ValueError in the current find_common_root implementation and prepared a minimal fix with a regression test using ntpath.commonpath. I'll submit a PR for this issue shortly. Prepared with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions