Skip to content

[Bug]: tracker.py uses incorrect import path 'from Eagle.libs.config' - breaks entire CI test suite #99

@Ryzen-Starbit

Description

@Ryzen-Starbit

Affected Component

Tracking (ByteTrack / DeepSORT — services/tracking/)

Bug Description

services/tracking/tracker.py line 21 has: from Eagle.libs.config import settings

This should be: from libs.config.settings import settings

Every other file in the project uses the correct relative import. This incorrect path causes ModuleNotFoundError when running tests, breaking all 22 tests in test_cross_camera_reid.py. Every contributor PR currently shows a failing CI check because of this single line.

Steps to Reproduce

  1. Open services/tracking/tracker.py
  2. Check line 21: from Eagle.libs.config import settings
  3. Run: pytest tests/test_cross_camera_reid.py -v
  4. All 22 tests fail immediately with: ModuleNotFoundError: No module named 'Eagle'

Expected Behavior

tests/test_cross_camera_reid.py should run successfully.
The import should use the same pattern as every other file in the project: from libs.config.settings import settings

Actual Behavior

All 22 tests in test_cross_camera_reid.py fail at collection with ModuleNotFoundError: No module named 'Eagle'.
Every contributor PR shows a failing CI check because of this.

Python Version

3.11

Operating System

Windows 11

Inference Device

None

Error Log / Traceback

(venv) PS C:\Users\ankit\OneDrive\Desktop\work\Projects\New folder\Eagle> pytest tests/test_cross_camera_reid.py -v 2>&1 | Select-String "ModuleNotFoundError|Eagle" | Select-Object -First 5

platform win32 -- Python 3.13.7, pytest-9.0.3, pluggy-1.6.0 -- C:\Users\ankit\OneDrive\Desktop\work\Projects\New folder\Eagle\venv\Scripts\python.exe
rootdir: C:\Users\ankit\OneDrive\Desktop\work\Projects\New folder\Eagle
>   from Eagle.libs.config import settings
E   ModuleNotFoundError: No module named 'Eagle'
services\tracking\tracker.py:21: ModuleNotFoundError

Screenshots or Recordings

Image

Additional Context

Fix is a one-line change in services/tracking/tracker.py:

Current (line 21): from Eagle.libs.config import settings

Fix: from libs.config.settings import settings

Every other file in the project already uses this correct pattern. For example: services/memory/action_classifier.py:
from libs.config.settings import settings

I'd like to open a PR for this fix if the maintainer agrees.

Files affected:

  • services/tracking/tracker.py (line 21 only)

Checklist

  • I have searched existing issues and this is not a duplicate.
  • I have tested with the latest version of the main branch.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions