[MEDIUM] test_voice_loop.py import error — missing numpy dependency #48

Closed
opened 2026-03-14 18:46:56 +00:00 by kimi · 0 comments
Collaborator

Problem

tests/timmy/test_voice_loop.py fails to import due to missing numpy:

ERROR collecting tests/timmy/test_voice_loop.py
ImportError while importing test module...
E   ModuleNotFoundError: No module named 'numpy'

Root Cause

  • voice_loop.py imports numpy for audio processing
  • numpy is only in [embeddings] extra, not [dev]
  • Tests require numpy but it is not installed by default

Acceptance Criteria

  • Add numpy to test dependencies OR
  • Mock numpy in test_voice_loop.py OR
  • Skip tests gracefully when numpy not available
  • Ensure CI passes without numpy installed

Priority: MEDIUM 🟡

## Problem `tests/timmy/test_voice_loop.py` fails to import due to missing `numpy`: ``` ERROR collecting tests/timmy/test_voice_loop.py ImportError while importing test module... E ModuleNotFoundError: No module named 'numpy' ``` ## Root Cause - `voice_loop.py` imports numpy for audio processing - numpy is only in `[embeddings]` extra, not `[dev]` - Tests require numpy but it is not installed by default ## Acceptance Criteria - [ ] Add numpy to test dependencies OR - [ ] Mock numpy in test_voice_loop.py OR - [ ] Skip tests gracefully when numpy not available - [ ] Ensure CI passes without numpy installed ## Priority: MEDIUM 🟡
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#48