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

Đang mở
#263 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

@jmacd867 đang làm issue này rồi.

Từ ngày 30/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Python
Star
4
Fork
9
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của oss-slu/PilotDataSynchronization

Tất cả issue của oss-slu/PilotDataSynchronization

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.