data_logger stops with a traceback if its CSV is open in Excel

Aperta
#263 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@jmacd867 ci sta già lavorando.

Dal 30/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area:ml bug needs-triage python

Describe the bug

data_logger reopens its CSV for every row (append_row, inference/pilot_inference/capture/data_logger.py:126). Excel locks a CSV it has open against other writers, so if someone opens the session file in Excel during a flight to check that rows are arriving, the next open() raises PermissionError. serve only catches ConnectionError (data_logger.py:177), so the logger stops with a traceback and every later sample is lost.

Found while advising how to watch the CSV during the lab setup session on 2026-10-29; it was not actually triggered. Opening the file in Excel is the first thing most people will try.

Expected behavior

A locked file does not end the recording. Either keep the rows in memory and retry each write, printing once that the file is locked and must be closed, or at the least stop with a one-line message naming the file instead of a traceback.

Additional context

inference/README.md could also say how to watch rows arrive without locking the file: Get-Content <csv> -Wait -Tail 5 in PowerShell.

Lingua principale
Rust
Stelle
4
Fork
9
Merge medio
5g 13h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oss-slu/PilotDataSynchronization

Tutte le issue di oss-slu/PilotDataSynchronization

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.