Skip to content

'XGBoostBenchmark' object has no attribute 'benchmark' #187

@PauloDsea

Description

@PauloDsea

I am trying to run the "How to Build a Container Locally" example, but I am getting this error:

[INFO] BenchmarkClient at 2025-04-15 21:31:00,075 --- ~~~ HPOBENCH VERSION: 0.0.10 ~~~~ CONTAINER VERSION: latest ~~~
Traceback (most recent call last):
  File "/home/paulo/HPO/HPOBench/HPOBench/hpobench/container/recipes/ml/testeHpobench.py", line 3, in <module>
    b = XGBoostBenchmark(task_id=167149, container_name="xgboost_benchmark", container_source='./')
  File "/home/paulo/HPO/HPOBench/ambiente_HPO/lib/python3.9/site-packages/hpobench/container/benchmarks/ml/xgboost_benchmark.py", line 14, in __init__
    super(XGBoostBenchmark, self).__init__(**kwargs)
  File "/home/paulo/HPO/HPOBench/ambiente_HPO/lib/python3.9/site-packages/hpobench/container/client_abstract_benchmark.py", line 130, in __init__
    self.load_benchmark(benchmark_name=benchmark_name, container_name=container_name,
  File "/home/paulo/HPO/HPOBench/ambiente_HPO/lib/python3.9/site-packages/hpobench/container/client_abstract_benchmark.py", line 261, in load_benchmark
    assert (self.container_dir / self.container_name_with_tag).exists(), \
AssertionError: Local container not found in xgboost_benchmark_latest
Exception ignored in: <function AbstractBenchmarkClient.__del__ at 0x7f9328c7db80>
Traceback (most recent call last):
  File "/home/paulo/HPO/HPOBench/ambiente_HPO/lib/python3.9/site-packages/hpobench/container/client_abstract_benchmark.py", line 507, in __del__
    self._shutdown()
  File "/home/paulo/HPO/HPOBench/ambiente_HPO/lib/python3.9/site-packages/hpobench/container/client_abstract_benchmark.py", line 484, in _shutdown
    self.benchmark.shutdown()
AttributeError: 'XGBoostBenchmark' object has no attribute 'benchmark'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions