#2367·boxmot

Materialization setup failed

Author: TomVuodCreated Sep 20, 2026Updated Sep 21, 2026
Labelsbugtriageevaluationmot17engine

Search before asking

Bug

Hello, I have the error when I try to build materialization. I'm using latest version of boxmot (25.0.0) and running code in Jupyter Notebook (kernel created in boxmot uv venv). The same code runs fine if executed directly in the python interpreter.

Environment

  • boxmot 25.0.0
  • Selected Jupyter core packages...
  • IPython : 9.12.0
  • ipykernel : 6.31.0
  • ipywidgets : not installed
  • jupyter_client : 8.8.0
  • jupyter_core : 5.9.1
  • traitlets : 5.14.3
  • python 3.12.3

Minimal Reproducible Example

from boxmot.engine.config.runtime import build_mode_namespace
from boxmot.engine.materialization.workflow import main as materialize_main
from boxmot.engine.eval.evaluator import run_eval

materialize_args = build_mode_namespace(
    "materialize",
    {
        "experiment": "mot17/ablation-yolox-lmbn.yaml",
        "data_root": ".data/",
        "device": "cpu",
        "fps": 30.0,
        "build_root": "runs/builds",
    },
)
build_path = materialize_main(materialize_args)

build_path = materialize_main(materialize_args)

INFO     Cataloging source samples…                                                                                

/storage/jupyter/home/twlodarczyk/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm

INFO     Setting up evaluation data...                                                                             

INFO     Downloading Lekim89/MOT17/ablation ...                                                                    

Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.

ERROR    Materialization setup failed (TypeError:                                                                  
         snapshot_download_hf_subfolder.<locals>._make_tqdm_aggregator.<locals>._TqdmAggregated.refresh() got an   
         unexpected keyword argument 'lock_args').                                                                 

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[6], line 1
----> 1 build_path = materialize_main(materialize_args)

File ~/benchmark/boxmot/boxmot/engine/materialization/workflow.py:513, in main(args)
    511 try:
    512     with suppress_boxmot_logs(interactive, level="WARNING"):
--> 513         return materialize(args, progress=progress)
    514 except BaseException as exc:
    515     progress.unhandled_failure(exc)

File ~/benchmark/boxmot/boxmot/engine/materialization/workflow.py:225, in materialize(args, progress)
    214 command_device = normalize_device(getattr(args, "device", None) or "cpu")
    215 progress.setup_status("Cataloging source samples…")
    217 (
    218     dataset_name,
    219     geometry,
    220     catalog,
    221     detector_reference,
    222     segmentor_reference,
    223     reid_reference,
    224     source_metadata,
--> 225 ) = _resolved_inputs(args, status_callback=progress.setup_status)
    226 progress.setup_status(f"Cataloged {len(catalog.samples):,} source samples; resolving executor settings…")
    227 settings = load_executor_settings(
    228     getattr(args, "plan_path", None),
    229     tuple(getattr(args, "plan_overrides", ()) or ()),
    230 )

File ~/benchmark/boxmot/boxmot/engine/materialization/workflow.py:137, in _resolved_inputs(args, status_callback)
    135 data_root = getattr(args, "data_root", None)
    136 source_root = resolve_dataset_storage_root(dataset, data_root)
--> 137 ensure_dataset_split_available(
    138     dataset,
    139     split=str(dataset["split"]),
    140     data_root=data_root,
    141     status_callback=status_callback,
    142 )
    143 with FileMetadataCache(
    144     default_source_metadata_cache_path(source_root),
    145     status_callback=status_callback,
    146 ) as metadata_cache:
    147     catalog = catalog_mot_dataset(
    148         dataset,
    149         split=dataset["split"],
   (...)    152         fps=getattr(args, "fps", None),
    153     )

File ~/benchmark/boxmot/boxmot/engine/materialization/resources.py:145, in ensure_dataset_split_available(dataset, split, data_root, status_callback)
    143 registered_callback = _get_download_status_fn()
    144 download_status = registered_callback if registered_callback is not None else status_callback
--> 145 _download_eval_data(
    146     dataset_url=uri,
    147     dataset_dest=dataset_root,
    148     # This split already failed the candidate-frame readiness check.
    149     # Bypass the lower-level "any populated target" shortcut; HF's
    150     # snapshot cache still makes the transfer resumable.
    151     overwrite=True,
    152     status_fn=download_status,
    153 )
    154 if not _has_dataset_content(split_root):
    155     raise FileNotFoundError(
    156         f"Dataset {dataset_id!r} resource {uri!r} did not create configured split {split!r} at {split_root}."
    157     )

File ~/benchmark/boxmot/boxmot/engine/materialization/resources.py:31, in _download_eval_data(**kwargs)
     27 """Load the heavyweight HTTP download stack lazily."""
     29 from boxmot.resources.download import download_eval_data
---> 31 download_eval_data(**kwargs)

File ~/benchmark/boxmot/boxmot/resources/download.py:722, in download_eval_data(runs_url, dataset_url, dataset_dest, overwrite, runs_check_path, status_fn)
    720 subfolder = "/".join(parts[2:])
    721 if subfolder:
--> 722     download_hf_dataset_subfolder(
    723         repo_id,
    724         subfolder,
    725         dataset_dest,
    726         overwrite=overwrite,
    727         status_fn=status_fn,
    728     )
    729 else:
    730     download_hf_dataset(repo_id, dataset_dest, overwrite=overwrite, status_fn=status_fn)

File ~/benchmark/boxmot/boxmot/resources/download.py:659, in download_hf_dataset_subfolder(repo_id, subfolder, dest_root, overwrite, status_fn)
    656 else:
    657     LOGGER.info(message)
--> 659 snapshot_download_hf_subfolder(repo_id, subfolder, dest_root, status_fn=status_fn)
    661 # Mark download as complete so subsequent runs skip it
    662 target.mkdir(parents=True, exist_ok=True)

File ~/benchmark/boxmot/boxmot/resources/download.py:630, in snapshot_download_hf_subfolder(repo_id, subfolder, dest_root, status_fn, description)
    627         snapshot_download(tqdm_class=_make_tqdm_aggregator(progress_tqdm), **snapshot_kwargs)
    628     return
--> 630 snapshot_download(tqdm_class=_make_tqdm_aggregator(tqdm), **snapshot_kwargs)

File ~/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py:88, in validate_hf_hub_args.<locals>._inner_fn(*args, **kwargs)
     84         validate_repo_id(arg_value)
     86 kwargs = smoothly_deprecate_legacy_arguments(fn_name=fn.__name__, kwargs=kwargs)
---> 88 return fn(*args, **kwargs)

File ~/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/huggingface_hub/_snapshot_download.py:451, in snapshot_download(repo_id, repo_type, revision, cache_dir, local_dir, library_name, library_version, user_agent, etag_timeout, force_download, token, local_files_only, allow_patterns, ignore_patterns, max_workers, tqdm_class, headers, endpoint, dry_run)
    429 def _inner_hf_hub_download(repo_file: str) -> None:
    430     results.append(
    431         hf_hub_download(  # type: ignore
    432             repo_id,
   (...)    448         )
    449     )
--> 451 thread_map(
    452     _inner_hf_hub_download,
    453     filtered_repo_files,
    454     desc=tqdm_desc,
    455     max_workers=max_workers,
    456     tqdm_class=tqdm_class,
    457 )
    459 bytes_progress.set_description("Download complete")
    461 if dry_run:

File ~/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/tqdm/contrib/concurrent.py:69, in thread_map(fn, *iterables, **tqdm_kwargs)
     55 """
     56 Equivalent of `list(map(fn, *iterables))`
     57 driven by `concurrent.futures.ThreadPoolExecutor`.
   (...)     66     [default: max(32, cpu_count() + 4)].
     67 """
     68 from concurrent.futures import ThreadPoolExecutor
---> 69 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)

File ~/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/tqdm/contrib/concurrent.py:51, in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs)
     47 with ensure_lock(tqdm_class, lock_name=lock_name) as lk:
     48     # share lock in case workers are already using `tqdm`
     49     with PoolExecutor(max_workers=max_workers, initializer=tqdm_class.set_lock,
     50                       initargs=(lk,)) as ex:
---> 51         return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))

File ~/benchmark/boxmot/boxmot/resources/download.py:568, in snapshot_download_hf_subfolder.<locals>._make_tqdm_aggregator.<locals>._TqdmAggregated.__init__(self, iterable, *args, **kwargs)
    565     kwargs["desc"] = progress_description
    567 if shared_fetch_task[0] is None:
--> 568     super().__init__(iterable, *args, **kwargs)
    569     shared_fetch_task[0] = self._task_id
    570 else:

File ~/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/tqdm/asyncio.py:24, in tqdm_asyncio.__init__(self, iterable, *args, **kwargs)
     23 def __init__(self, iterable=None, *args, **kwargs):
---> 24     super().__init__(iterable, *args, **kwargs)
     25     self.iterable_awaitable = False
     26     if iterable is not None:

File ~/.cache/uv/environments-v2/boxmot-cp3.12.3-b579aa1bde68f245/lib/python3.12/site-packages/tqdm/std.py:1098, in tqdm.__init__(self, iterable, desc, total, leave, file, ncols, mininterval, maxinterval, miniters, ascii, disable, unit, unit_scale, dynamic_ncols, smoothing, bar_format, initial, position, postfix, unit_divisor, write_bytes, lock_args, nrows, colour, delay, gui, **kwargs)
   1096     self.sp = self.status_printer(self.fp)
   1097     if delay <= 0:
-> 1098         self.refresh(lock_args=self.lock_args)
   1100 # Init the time counter
   1101 self.last_print_t = self._time()

TypeError: snapshot_download_hf_subfolder.<locals>._make_tqdm_aggregator.<locals>._TqdmAggregated.refresh() got an unexpected keyword argument 'lock_args'