Skip to content

[Bug] 新环境根据资料提示安装工具,运行过程中报错ModuleNotFoundError: No module named 'pkg_resources' #484

Closed

Description

@liuyang-2026

操作系统及版本

openEuler 24.03 (LTS-SP4)

安装工具的python环境

在anaconda/miniconda创建的python虚拟环境

python版本

3.10

AISBench工具版本

3.1.0,commit id: 29c363e

AISBench执行命令

ais_bench --models vllm_api_general_chat --datasets synthetic_gen --mode perf

模型配置文件或自定义配置文件内容

models文件配置
{
"attr": "service",
"type": VLLMCustomAPIChat,
"abbr": "vllm-api-general-chat",
"path": "xxx/models_weight/Qwen2.5-7B-Instruct",
"model": "x",
"stream": False,
"request_rate": 800,
"use_timestamp": False,
"retry": 2,
"api_key": "",
"host_ip": "localhost",
"host_port": 8182,
"url": "",
"max_out_len": 512,
"batch_size": 10000,
"trust_remote_code": False,
"generation_kwargs": {
"temperature": 0.01,
"ignore_eos": True
},
"pred_postprocessor": {"type": extract_non_reasoning_content}
}
数据集synthetic配置
{
"Type": "string",
"RequestCount": 10000,
"StringConfig": {
"Input": {
"Method": "uniform", "Params": {"MinValue": 1024, "MaxValue": 1024}
},
"Output": {
"Method": "uniform", "Params": {"MinValue": 4096, "MaxValue": 4096}
}
}
}

预期行为

评测正常运行

实际行为

报错:
/home/autotest/AutoTestProperty/aisbench_benchmark/benchmark/ais_bench/benchmark/configs/./datasets/synthetic/synthetic_gen.py
Traceback (most recent call last):
File "/home/autotest/AutoTestProperty/aisbench_benchmark/benchmark/ais_bench/benchmark/cli/config_manager.py", line 644, in _load_datasets_config
cfg = Config.fromfile(dataset[1])
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/config.py", line 494, in fromfile
raise e
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/config.py", line 492, in fromfile
cfg_dict, imported_names = Config._parse_lazy_import(filename)
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/config.py", line 1071, in _parse_lazy_import
root_path = get_installed_path(package)
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/utils/package_utils.py", line 48, in get_installed_path
from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
当前环境是删除conda环境后根据资料新安装,部分用例会遇到此报错
pkg_resources依赖setuptools,当前环境的setuptools默认安装的83.0.0版本,会出现错误,查看以前的环境上此包的版本是78.1.1,手动将此依赖安装78.1.1可以正常运行,建议修改安装过程中指定包的版本否则会报错

前置检查

  • 我已读懂主页文档的快速入门,无法解决问题
  • 我已检索过FAQ,无重复问题
  • 我已搜索过现有Issue,无重复问题
  • 我已更新到最新版本,问题仍存在

Activity

  1. added
    bug
    on Aug 24, 2026
  2. github-actions commented on Aug 24, 2026

    @github-actions

    🌟欢迎给AISBench benchmark测评工具提issue,您可以先尝试以下途径寻求issue的解决方法:

    1. 【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库
    2. 在 工具历史issue 中通过问题的关键日志片段或关键词检索相似issue
    3. 在 官方文档 的搜索栏中通过问题的关键日志片段或关键词检索
    4. 寻求仓库维护者的帮助(issue评论区中 @SJTUyh)
  3. github-actions commented on Aug 24, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    PASS

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: COMPLETE
    • AISBench工具版本: COMPLETE
    • AISBench执行命令: COMPLETE
    • 模型配置文件或自定义配置文件内容: COMPLETE
    • 实际行为: COMPLETE

    改进建议

    所有内容已完备!

    补充说明

    该Issue内容非常详细和完整,不仅提供了所有必需的信息,还包括了详细的错误堆栈、问题分析和初步的解决方案,对于问题排查非常有帮助。

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  4. added
    content_check_passed
    on Aug 24, 2026
  5. liuyang-2026 commented on Sep 21, 2026

    @liuyang-2026
    CollaboratorAuthor

    问题已解决

  6. removed
    not_fixed
    on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcontent_check_passed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions