Repository: open-compass/opencompass
Issue: 在python3.8.13版本遇到问题[Bug] 
Root cause: Validation Gap

### Prerequisite

- [X] I have searched [Issues](https://github.com/InternLM/opencompass/issues/) and [Discussions](https://github.com/InternLM/opencompass/discussions) but cannot get the expected help.
- [X] The bug has not been fixed in the [latest version](https://github.com/InternLM/opencompass).

### Type

I'm evaluating with the officially supported tasks/models/datasets.

### Environment

除了python版本，其他均与官方一致。
python版本3.8.13

### Reproduces the problem - code/configuration sample

同官方

### Reproduces the problem - command or script

同官方

### Reproduces the problem - error message

``ImportError: No module named site
Traceback (most recent call last):
  File "/checkpoint/binary/train_package/eval.py", line 40, in <module>
    run.main()
  File "/checkpoint/binary/train_package/run.py", line 196, in main
    cfg = Config.fromfile(output_config_path, format_python_code=False)
  File "/root/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 455, in fromfile
    lazy_import is None and not Config._is_lazy_import(filename):
  File "/root/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 1653, in _is_lazy_import
    parsed_codes = ast.parse(codes_str)
  File "/opt/conda/envs/python3.8.13/lib/python3.8/ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 5
    type=<class 'opencompass.openicl.icl_evaluator.icl_hf_evaluator.EDAccEvaluator'>),
         ^
SyntaxError: invalid syntax``

### Other information

目前看就是importlib导入对应class时解析不。
我这边很多机器python版本是低版本的，因此太高3.10不能用。

是在解析config阶段就不行? 看上去是语法错误。可以用 `mmengine.config.Config` 检查一下

![image](https://github.com/InternLM/opencompass/assets/18586273/0835e43c-5671-486b-94ec-a011710574dd)


我看了下定位的问题是输出的py文件里面
可以使用的是 type=<'opencompass.openicl.icl_evaluator.icl_hf_evaluator.EDAccEvaluator'>),

我线上机器变成了入下
type=<class 'opencompass.openicl.icl_evaluator.icl_hf_evaluator.EDAccEvaluator'>),
挺奇怪的
![image](https://github.com/InternLM/opencompass/assets/15667364/5d3031e6-0f32-4a65-9fb3-3df44b8f574a)


hello?

> 我线上机器变成了入下
type=<class 'opencompass.openicl.icl_evaluator.icl_hf_evaluator.EDAccEvaluator'>),

这个是正常的，为了方便复现

feel fee to re-open if needed.

已解决。

怎么解决的呀兄弟

请问和python版本有关系么？

同样Python3.8.13
报错
`Traceback (most recent call last):
  File "/checkpoint/binary/train_package/run.py", line 342, in <module>
    main()
  File "/checkpoint/binary/train_package/run.py", line 242, in main
    cfg = Config.fromfile(output_config_path, format_python_code=False)
  File "/root/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 456, in fromfile
    lazy_import is None and not Config._is_lazy_import(filename):
  File "/root/.local/lib/python3.8/site-packages/mmengine/config/config.py", line 1657, in _is_lazy_import
    parsed_codes = ast.parse(codes_str)
  File "/opt/conda/envs/python3.8.13/lib/python3.8/ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 54
    type=<class 'opencompass.multimodal.models.qwen.prompt_constructor.QwenVLMMBenchPromptConstructor'>),
         ^
SyntaxError: invalid syntax`

Thank you for bringing this issue to our attention. We appreciate your help in identifying the bug, and we will check this problem soon.


> 已解决。

请问最后是怎么解决的？我也遇到了一样的问题

> 已解决。

你是怎么解决的，我也遇到这个问题