Repository: modelscope/evalscope
Issue: swe_bench_lite doesn‘t work
Root cause: Environment Incompatibility

## 自查清单

在提交 issue 之前，请确保您已完成以下步骤:
- [x] 我已仔细阅读了[相关使用说明文档](https://evalscope.readthedocs.io/zh-cn/latest/get_started/parameters.html)
- [x] 我已查看了[常见问题解答](https://evalscope.readthedocs.io/zh-cn/latest/get_started/faq.html)
- [x] 我已搜索并查看了现有的 issues，确认这不是一个重复的问题

## 问题描述

swe_bench_lite doesn‘t work

## EvalScope 版本（必填）
v1.13.0

## 使用的工具
- [ ] Native / 原生框架
- [ ] Opencompass backend
- [ ] VLMEvalKit backend
- [ ] RAGEval backend
- [ ] Perf / 模型推理压测工具
- [ ] Arena / 竞技场模式

## 执行的代码或指令

```bash
# server
python -m sglang.launch_server --model Qwen/Qwen2.5-0.5B-Instruct --port 8802
# evaluation
evalscope eval  --model qwen  --eval-type openai_api  --api-url http://127.0.0.1:8802/v1  --api-key EMPTY  --datasets swe_bench_lite
```

## 错误日志


```bash
Downloading [README.md]: 3.34kB [00:00, 26.9MB/s]                                                                           
Downloading data: 100%|????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????| 2.10M/2.10M [00:00<00:00, 11.6MB/s]
Generating test split: 100%|????????????????????????????????????????????????????????????????????????????????????????????????????????| 500/500 [00:00<00:00, 22765.44 examples/s]
Saving the dataset (1/1 shards): 100%|????????????????????????????????????????????????????????????????????????????????????| 500/500 [00:00<00:00, 72089.37 examples/s]
Processing records: 100%|????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????| 500/500 [00:00<00:00, 42666.67it/s]
Traceback (most recent call last):                                                                                          
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connectionpool.py", line 791, in urlopen                            
    response = self._make_request(                                                                                          
               ^^^^^^^^^^^^^^^^^^^                                                                                          
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connectionpool.py", line 497, in _make_request                      
    conn.request(                                                                                                           
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connection.py", line 395, in request                                
    self.endheaders()                                                                                                       
  File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders                                                       
    self._send_output(message_body, encode_chunked=encode_chunked)                                                          
  File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output                                                     
    self.send(msg)                                                                                                          
  File "/usr/lib/python3.12/http/client.py", line 1035, in send                                                             
    self.connect()                                                                                                          
  File "/usr/local/lib/python3.12/dist-packages/docker/transport/unixconn.py", line 26, in connect                          
    sock.connect(self.unix_socket)                                                                                          
FileNotFoundError: [Errno 2] No such file or directory                                                                      
                                                                                                                            
During handling of the above exception, another exception occurred:                                                         
                                                                                                                            
Traceback (most recent call last):                                                                                          
  File "/usr/local/lib/python3.12/dist-packages/requests/adapters.py", line 667, in send                                    
    resp = conn.urlopen(                                                                                                    
           ^^^^^^^^^^^^^                                                                                                    
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connectionpool.py", line 845, in urlopen                            
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/urllib3/util/retry.py", line 470, in increment
    raise reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/urllib3/util/util.py", line 38, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connectionpool.py", line 791, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connectionpool.py", line 497, in _make_request
    conn.request(
  File "/usr/local/lib/python3.12/dist-packages/urllib3/connection.py", line 395, in request
    self.endheaders()
  File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output
    self.send(msg)
  File "/usr/lib/python3.12/http/client.py", line 1035, in send                                                             
    self.connect()                                                                                                          
  File "/usr/local/lib/python3.12/dist-packages/docker/transport/unixconn.py", line 26, in connect
    sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/docker/api/client.py", line 223, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
                        ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/utils/decorators.py", line 44, in inner
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/api/client.py", line 246, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/requests/adapters.py", line 682, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/evalscope", line 7, in <module>
    sys.exit(run_cmd())
             ^^^^^^^^^
  File "/home/xinhe/evalscope/evalscope/cli/cli.py", line 27, in run_cmd
    cmd.execute()
  File "/home/xinhe/evalscope/evalscope/cli/start_eval.py", line 32, in execute
    run_task(self.args)
  File "/home/xinhe/evalscope/evalscope/run.py", line 28, in run_task
    return run_single_task(task_cfg, run_time)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xinhe/evalscope/evalscope/run.py", line 42, in run_single_task
    result = evaluate_model(task_cfg, outputs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xinhe/evalscope/evalscope/run.py", line 148, in evaluate_model
    res_dict = evaluator.eval()
               ^^^^^^^^^^^^^^^^
  File "/home/xinhe/evalscope/evalscope/evaluator/evaluator.py", line 96, in eval
    dataset_dict = self.benchmark.load_dataset()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xinhe/evalscope/evalscope/api/benchmark/adapters/default_data_adapter.py", line 66, in load_dataset
    self._post_process_samples()
  File "/home/xinhe/evalscope/evalscope/benchmarks/swe_bench/swe_bench_adapter.py", line 90, in _post_process_samples
    id_to_docker_image_map = build_images(
                             ^^^^^^^^^^^^^
  File "/home/xinhe/evalscope/evalscope/benchmarks/swe_bench/build_images.py", line 40, in build_images
    docker_client = DockerClient.from_env()
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/client.py", line 94, in from_env
    return cls(
           ^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/client.py", line 45, in __init__
    self.api = APIClient(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/api/client.py", line 207, in __init__
    self._version = self._retrieve_server_version()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/docker/api/client.py", line 230, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
```

## 运行环境

- 操作系统：linux
- Python版本：3.12

## 其他信息

- Docker: nvcr.io/nvidia/pytorch:25.08-py3 

如果有其他相关信息，请在此处提供。


这个错误表明程序试图连接 Docker，但无法找到 Docker 的 Unix socket 文件，检查 Docker 是否已安装。参考这个文档使用：https://evalscope.readthedocs.io/zh-cn/latest/third_party/swe_bench.html

> 感谢你的反馈！我们将关闭此问题。如果您有任何疑问，请随时重新打开它。如果EvalScope对您有所帮助，欢迎给我们点个STAR以示支持，谢谢！