Skip to content

TypeError while running harness.py #5

Description

@mshihabr

I am trying to run harness.py on swebench-lite.
I got the following error:

Traceback (most recent call last):
  File "~/python3.11/site-packages/multiprocess/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "~/aider-swe-bench/harness.py", line 231, in process_one_instance
    coder = get_coder(
            ^^^^^^^^^^
  File "~/aider-swe-bench/harness.py", line 154, in get_coder
    coder = Coder.create(
            ^^^^^^^^^^^^^
  File "~/python3.11/site-packages/aider/coders/base_coder.py", line 138, in create
    res = coder(main_model, io, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Coder.__init__() got an unexpected keyword argument 'git_dname'

It seems like you are passing git_dname as a parameter to coder = Coder.create() but according to the latest code on aider-chat it does not have any parameter like this.

After commenting out that parameter, got another error TypeError: Coder.__init__() got an unexpected keyword argument 'max_chat_history_tokens'

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