Skip to content

module_deps errors with 'imported_by_files' on valid module #684

Closed

Description

@ayackel

Description

analyze_code_relationships with query_type="module_deps" fails with an internal error when querying a valid indexed module.

Steps to Reproduce

  1. Index a Python project containing a Django app montage_search (a valid module with __init__.py, models, views, etc.)
  2. Query: analyze_code_relationships(query_type="module_deps", target="montage_search")

Expected Result

List of modules that montage_search depends on and modules that depend on it.

Actual Result

{
  "error": "Error executing relationship query: 'imported_by_files'",
  "query_type": "module_deps",
  "target": "montage_search"
}

Environment

  • CGC version: 0.2.14 (also reproduced on 0.2.5)
  • Database: Neo4j
  • Tested via MCP tool analyze_code_relationships

Activity

  1. github-actions commented on Mar 10, 2026

    @github-actions
    Contributor

    Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

  2. vaishnavi003-svg commented on Jun 11, 2026

    @vaishnavi003-svg

    please assign this issue to me.
    thank you

  3. Shashankss1205 commented on Jul 25, 2026

    @Shashankss1205
    Collaborator

    Resolved: imported_by_files KeyError gone; refactored to importers/imports (code_finder.py:1098-1135). Closing.

  4. moved this from Backlog tasks to Done in CGC Progress Boardon Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions