Skip to content

Bug: feedparser imported at module level breaks kurt init #86

@boringdata

Description

@boringdata

Problem

kurt init fails with No module named 'feedparser' when feedparser is not installed.

feedparser is an optional dependency in [project.optional-dependencies].workflows, but it's imported at module level in src/kurt/integrations/research/monitoring/feeds.py:14.

Steps to Reproduce

mkdir test-project && cd test-project
uv venv && source .venv/bin/activate
uv pip install -e /path/to/kurt-core  # without [workflows] extra
uv run kurt init

Expected

kurt init should work without optional dependencies.

Fix

Move import feedparser inside the functions that use it (lazy import), or catch ImportError gracefully.

Location

  • src/kurt/integrations/research/monitoring/feeds.py:14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions