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 core.pyx line 14 #1732

Closed
jnovoase opened this issue Sep 25, 2024 · 2 comments
Closed

Uncaught TypeError in core.pyx line 14 #1732

jnovoase opened this issue Sep 25, 2024 · 2 comments
Labels
question Further information is requested

Comments

@jnovoase
Copy link

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.2

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
Copy link
Collaborator

fry69 commented Sep 26, 2024

Thank you for filing this issue.

Can you please try to install or reinstall aider in a separate Python environment? Either with venv or pipx?

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

@fry69 fry69 added the question Further information is requested label Sep 26, 2024
@jnovoase
Copy link
Author

thank u

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