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

[Bug]: HumanEvalFix - 'Series' object has no attribute 'task_id' #1

Open
2 tasks done
Ethan0456 opened this issue Oct 10, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Ethan0456
Copy link
Member

Ethan0456 commented Oct 10, 2024

Is there an existing issue for the same bug?

Describe the bug

I was trying to run the run_infer.sh script for the Humanevalfix benchmark. However, when executing the script, I encountered an error where the code was referencing a non-existent column task_id.

Expected behavior

The script should run successfully without errors.

Proposed Solution

It seems the task_id column was renamed to instance_id, but the change hasn't been applied consistently throughout the code. To fix this, all references to task_id should be updated to instance_id across the script to ensure consistent naming and avoid attribute errors.

Current OpenHands version

0.9.8

Installation and Configuration

Model and Agent

  • Model: gpt-4-1106-preview

Operating System

  • Mac OS

Reproduction Steps

  • Execute humanevalfix bash script
./evaluation/humanevalfix/scripts/run_infer.sh [MODEL_CONFIG]

Logs, Errors, Screenshots, and Additional Context

10:51:27 - openhands:ERROR: shared.py:311 - ----------
Error in instance [Python/0]: 'Series' object has no attribute 'task_id'. Stacktrace:
Traceback (most recent call last):
  File "/Users/abhijeetsingh/project-repos/OpenHands/evaluation/utils/shared.py", line 281, in _process_instance_wrapper
    result = process_instance_func(instance, metadata, use_mp)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/abhijeetsingh/project-repos/OpenHands/evaluation/humanevalfix/run_infer.py", line 204, in process_instance
    sid = _get_instance_id(instance)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/abhijeetsingh/project-repos/OpenHands/evaluation/humanevalfix/run_infer.py", line 102, in _get_instance_id
    return instance.task_id.replace('/', '__')
           ^^^^^^^^^^^^^^^^
  File "/Users/abhijeetsingh/project-repos/OpenHands/.venv/lib/python3.12/site-packages/pandas/core/generic.py", line 6299, in __getattr__
    return object.__getattribute__(self, name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Series' object has no attribute 'task_id'

----------[The above error occurred. Retrying... (attempt 1 of 5)]----------
@Ethan0456 Ethan0456 added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant