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

Uncaught TypeError in pty_spawn.py line 281 #1302

Closed
fr34k8 opened this issue Sep 2, 2024 · 3 comments
Closed

Uncaught TypeError in pty_spawn.py line 281 #1302

fr34k8 opened this issue Sep 2, 2024 · 3 comments
Labels
question Further information is requested

Comments

@fr34k8
Copy link

fr34k8 commented Sep 2, 2024

Aider version: 0.54.12
Python version: 3.12.5
Platform: macOS-14.6.1-arm64-arm-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 23.6.0 (64bit)
Git version: git version 2.39.3 (Apple Git-146)

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 682, in main
    coder.run()
  File "base_coder.py", line 730, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 773, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1212, in send_message
    test_errors = self.commands.cmd_test(self.test_cmd)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "commands.py", line 746, in cmd_test
    return self.cmd_run(args, True)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "commands.py", line 757, in cmd_run
    exit_status, combined_output = run_cmd(args, verbose=self.verbose)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "run_cmd.py", line 14, in run_cmd
    return run_cmd_pexpect(command, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "run_cmd.py", line 73, in run_cmd_pexpect
    child = pexpect.spawn(shell, args=["-c", command], encoding="utf-8")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pty_spawn.py", line 205, in __init__
    self._spawn(command, args, preexec_fn, dimensions)
  File "pty_spawn.py", line 281, in _spawn
    self.name = '<' + ' '.join(self.args) + '>'
                      ^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 2: expected str instance, list found

@paul-gauthier
Copy link
Owner

Thanks for trying aider and filing this issue.

What did you type into aider to trigger this error?

@paul-gauthier
Copy link
Owner

BTW, the fix is available in the main branch. You can get it by installing the latest version from github:

aider --install-main-branch

# or...

python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

@paul-gauthier paul-gauthier added the question Further information is requested label Sep 2, 2024
@paul-gauthier
Copy link
Owner

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants