Skip to content

TypeError: argument of type 'NoneType' is not iterable #5

@rskasturi

Description

@rskasturi

While visualizing the results: poetry run python app.py --from-results-dir ~/raj/results/

Details
Traceback (most recent call last):
  File "/home/sdp/raj/inference-benchmarker/extra/dashboard/app.py", line 370, in <module>
    main(auto_envvar_prefix='DASHBOARD')
  File "/home/sdp/miniforge3/envs/tgi/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sdp/miniforge3/envs/tgi/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/sdp/miniforge3/envs/tgi/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sdp/miniforge3/envs/tgi/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sdp/raj/inference-benchmarker/extra/dashboard/app.py", line 366, in main
    run(from_results_dir, datasource_bench, datasource_ci, github_token, github_repo, port)
  File "/home/sdp/raj/inference-benchmarker/extra/dashboard/app.py", line 209, in run
    build_results(from_results_dir, 'benchmarks.parquet', None)
  File "/home/sdp/raj/inference-benchmarker/extra/dashboard/parse_results.py", line 50, in build_results
    df = build_results_df(results_dir)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sdp/raj/inference-benchmarker/extra/dashboard/parse_results.py", line 45, in build_results_df
    df = pd.concat([df, build_df(directory.split('/')[-1], data_files)])
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sdp/raj/inference-benchmarker/extra/dashboard/parse_results.py", line 16, in build_df
    if 'engine' in data['config']['meta']:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

This is my result directory structure

results
├── mistral
│   ├── mistralai_Mistral-7B-Instruct-v0_3_2025-03-21-13-33-23.json

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions