Skip to content

[Dependencies] Add missing colorlog and PyYAML to requirements.txt #413

@AswaniSahoo

Description

@AswaniSahoo

Problem

The root requirements.txt is missing two packages that are imported unconditionally in core/common/:

Package Import Location Import Statement
colorlog core/common/log.py (line 18) import colorlog
PyYAML core/common/utils.py (line 24) import yaml

Both imports are at module level with no try/except guard. Following the install guide, a user runs pip install -r requirements.txt and then pip install -e .. Since colorlog and PyYAML are absent from requirements.txt, any subsequent ianvs CLI invocation crashes with ModuleNotFoundError unless the user happens to have these packages installed from another source.

Additional Cleanup

The existing entries in requirements.txt were unsorted. This change also alphabetically sorts all entries for consistency and easier maintenance.

Changes

  • Add colorlog to requirements.txt
  • Add PyYAML to requirements.txt
  • Sort entries alphabetically

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions