Troubleshooting
What you will find here
Real failure modes observed in current BNNR runs, with reproducible checks and fixes.
When to use this page
Use this when a command fails, a run hangs, dashboard is empty, or export output is unexpected.
1) Training finishes but process does not exit
Cause:
- run started with
--with-dashboard(default), so live server stays active.
Fix:
- stop with
Ctrl+C, or - run one-shot with
--without-dashboard.
2) Dashboard backend dependencies are missing
Cause:
- dashboard extras not installed.
Fix:
pip install "bnnr[dashboard]"3) --data-path is required ...
Cause:
- missing path for dataset types that require external structure.
Applies to:
imagefoldercoco_miniyolo
Fix: pass --data-path.
4) Could not find YOLO data.yaml
Cause:
--data-pathdoes not point to adata.yamlfile or a directory containing it.
Fix:
- validate path and required
train/valentries in YAML.
5) Dashboard shows zero runs
Cause:
- wrong
--run-dir, or run directory missingevents.jsonl.
Fix:
- use a parent folder containing
run_*directories, or - point directly at a run directory that has
events.jsonl.
6) CI on Python 3.9 fails with unsupported operand type(s) for |
Cause:
- runtime evaluation of
X | Noneannotations in CLI/FastAPI paths on Python 3.9.
Fix:
- keep compatible annotations in runtime-introspected paths,
- keep dependency
eval-type-backportforpython < 3.10.
7) CI/test import error: ModuleNotFoundError: No module named 'httpx'
Cause:
- async dashboard tests require
httpx.
Fix:
- include
httpxin test/dev dependencies.
8) pip install -e ".[dashboard]" or python -m build fails in restricted environments
Cause:
- isolated build environment cannot fetch build backend packages (for example
hatchling) due network restrictions.
Fix:
- in restricted/offline environments, use prepared build env and
python -m build --no-isolation, - in GitHub CI (network-enabled), standard
python -m buildshould work.
9) CUDA appears unavailable
Check:
python3 -c "import torch; print(torch.cuda.is_available(), torch.cuda.device_count())"Fix:
- install CUDA-compatible PyTorch build for your OS/driver.
10) Augmentation instability on grayscale datasets
Symptom:
- shape/broadcast errors with aggressive presets on grayscale data.
Fix:
- start with RGB datasets for preset stress tests,
- keep grayscale smoke runs minimal and conservative.
11) python3 -m venv fails with ensurepip is not available
Cause:
- Python venv support package is missing on the host OS.
Fix:
- install system venv package (for example
python3.12-venvon Ubuntu), - recreate the virtual environment and continue quickstart steps.
12) QR code is visible but dashboard does not open on phone
Cause:
- phone is on a different network,
- local firewall blocks dashboard port,
- router/client isolation blocks peer-to-peer traffic.
Fix:
- confirm phone and machine are on the same Wi-Fi,
- open Network URL manually on phone (not only QR scan),
- test with explicit port, e.g.
--dashboard-port 8080, - allow Python/server traffic for that port in firewall settings.