zilliztech / VectorDBBench

A Benchmark Tool for VectorDB
MIT License
519 stars 133 forks source link

ValidationError: 2 validation errors for TaskConfig db_config Can't instantiate abstract class DBConfig with abstract method to_dict (type=type_error) db_case_config instance of DBCaseConfig expected (type=type_error.arbitrary_type; expected_arbitrary_type=DBCaseConfig) #299

Closed zhaojianjun0319 closed 5 months ago

zhaojianjun0319 commented 5 months ago

ValidationError: 2 validation errors for TaskConfig db_config Can't instantiate abstract class DBConfig with abstract method to_dict (type=type_error) db_case_config instance of DBCaseConfig expected (type=type_error.arbitrary_type; expected_arbitrary_type=DBCaseConfig)

File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script exec(code, module.dict) File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 65, in main() File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 48, in main generate_tasks(activedDbList, dbConfigs, activedCaseList, allCaseConfigs) File "/opt/code/vectordb_bench/frontend/components/run_test/generateTasks.py", line 8, in generate_tasks task = TaskConfig( ^^^^^^^^^^^ File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init

zhaojianjun0319 commented 5 months ago

通过docker打镜像之后运行服务,浏览器访问8501端口,选择milvus数据库,填完数据库地址,选择测试case 直接报错了 哪位大神给看下

alwayslove2013 commented 5 months ago

@zhaojianjun0319 We are not able to reproduce this issue, could you please tell us your parameter configuration (index type and index parameters).

xieydd commented 3 months ago

I meet the same error, and it is random, wired.

pydantic.error_wrappers.ValidationError: 2 validation errors for TaskConfig
│ db_config
│   Can't instantiate abstract class DBConfig with abstract method to_dict (type=type_error)
│ db_case_config
│   instance of DBCaseConfig expected (type=type_error.arbitrary_type; expected_arbitrary_type=DBCaseConfig)
│ 2024-06-07 02:19:22.136 Uncaught app exception
│ Traceback (most recent call last):
│   File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
│     exec(code, module.__dict__)
│   File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 65, in <module>
│     main()
│   File "/opt/code/vectordb_bench/frontend/pages/run_test.py", line 48, in main
│     generate_tasks(activedDbList, dbConfigs, activedCaseList, allCaseConfigs)
│   File "/opt/code/vectordb_bench/frontend/components/run_test/generateTasks.py", line 8, in generate_tasks
│     task = TaskConfig(
│            ^^^^^^^^^^^
│   File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__

image

image

xieydd commented 3 months ago

@alwayslove2013