Skip to content

[Bug]: Detection pipeline fails with ModuleNotFoundError for libs.schemas #129

@Prarthana124

Description

@Prarthana124

Affected Component

Detection Pipeline (services/detection/)

Bug Description

While testing the detection pipeline, I followed the README setup instructions and encountered an import resolution error during startup.
The README currently suggests running:
python services/detection/detection.py --source data/sample_videos/sample.mp4

However, this results in a startup failure related to package imports.

Steps to Reproduce

  1. Clone the repository
  2. Open terminal from project root (Eagle/)
  3. Run :
    python services/detection/detection.py --source data/sample_videos/sample.mp4

Expected Behavior

Detection pipeline should start successfully using the README command.

Actual Behavior

Import resolution error occurs during startup.

Python Version

3.13

Operating System

Windows 11

Inference Device

None

Error Log / Traceback

python services/detection/detection.py --source data/sample_videos/sample.mp4

Traceback (most recent call last):
  File "C:\Users\prarthana\Eagle\services\detection\detection.py", line 22, in <module>
    from libs.schemas.detection import DetectionFrameSchema as DetectionFrame, DetectionSchema as Detection, BoundingBox
ModuleNotFoundError: No module named 'libs.schemas'

Screenshots or Recordings

Image

Additional Context

Suggested Improvement
Possible fixes may include:

  1. configuring package imports consistently
  2. or updating README instructions to use module-style execution:
    python -m services.detection.detection --source data/sample_videos/sample.mp4

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