paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
18.64k stars 1.72k forks source link

Uncaught TypeError in core.pyx line 14 #1578

Open lukpox01 opened 2 days ago

lukpox01 commented 2 days ago

Aider version: 0.56.0 Python version: 3.12.6 Platform: Linux-6.10.10-arch1-1-x86_64-with-glibc2.40 Python implementation: CPython Virtual environment: No OS: Linux 6.10.10-arch1-1 (64bit) Git version: git version 2.46.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 698, in main
    coder.run()
  File "base_coder.py", line 735, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 778, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1213, in send_message
    lint_errors = self.lint_edited(edited)
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1307, in lint_edited
    errors = self.linter.lint(self.abs_root_path(fname))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "linter.py", line 104, in lint
    lintres = basic_lint(rel_fname, code)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "linter.py", line 213, in basic_lint
    parser = get_parser(lang)
             ^^^^^^^^^^^^^^^^
  File "core.pyx", line 19, in tree_sitter_languages.core.get_parser
  File "core.pyx", line 14, in tree_sitter_languages.core.get_language
TypeError: __init__() takes exactly 1 argument (2 given)
fry69 commented 2 days ago

Thank you for filing this issue.

Please install aider separately from other Python modules and avoid aider system packages, as they often do not get the dependencies right. At best use pipx install aider-chat to install aider.

This document may be helpful -> https://aider.chat/docs/troubleshooting/imports.html