8000 [EnIGMA] Fix swebench version to 2.0 in requirements.txt by thaiminhpv · Pull Request #1085 · SWE-agent/SWE-agent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[EnIGMA] Fix swebench version to 2.0 in requirements.txt #1085

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

Conversation

thaiminhpv
Copy link

When I follows EnIGMA usage tutorial, I got the following error:

> python run.py \
  --model_name gpt4 \
  --ctf \
  --image_name sweagent/enigma:latest \
  --data_path ../NYU_CTF_Bench/test/2018/CSAW-Finals/misc/leaked_flag/challenge.json \
  --repo_path ../NYU_CTF_Bench/test/2018/CSAW-Finals/misc/leaked_flag/ \
  --config_file config/default_ctf.yaml \
  --per_instance_cost_limit 2.00

ERROR    keys.cfg not found in /home/run/SWE-agent/sweagent
Traceback (most recent call last):
  File "/home/run/SWE-agent/run.py", line 44, in <module>
    from sweagent.agent.agents import Agent, AgentArguments
  File "/home/run/SWE-agent/sweagent/agent/agents.py", line 28, in <module>
    from sweagent.agent.summarizer import SummarizerConfig
  File "/home/run/SWE-agent/sweagent/agent/summarizer.py", line 14, in <module>
    from sweagent.environment.swe_env import SWEEnv
  File "/home/run/SWE-agent/sweagent/environment/swe_env.py", line 24, in <module>
    from swebench.harness.utils import get_environment_yml, get_requirements
ImportError: cannot import name 'get_environment_yml' from 'swebench.harness.utils' (/home/run/anaconda3/envs/enigma/lib/python3.12/site-packages/swebench/harness/utils.py)

This is because when installing EnIGMA in branch v0.7, requirements.txt says swebench>=2.0.0, which at the time of writing this, it resolve to install swebench version 3.0.17 instead.

Changing it to swebench>=2.0.0,<3 fixed the problem, which resolve to swebench version 2.1.8.

Copy link
Member
@klieret klieret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tysm for this catch, really appreciated @thaiminhpv

@klieret klieret merged commit 084d5d1 into SWE-agent:v0.7 Apr 28, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0