Skip to content

Clarify local agency.py startup import failures #217

@nicko-ai

Description

@nicko-ai

Problem

When a local Agency Swarm project has a startup error in agency.py, the launcher first reports that the Python environment is ready and then shows a generic server-exit error. That makes a project-code import failure look like a venv or Agency Swarm package problem.

Example reproduced locally:

Agency Swarm server exited with code 1: ...
ModuleNotFoundError: No module named 'codex_missing_import_for_canary_test'

Expected

The launcher should separate the package check from project startup and point the user at the project error.

Agency Swarm packages ready
Starting your agency project.
Your agency project could not load.
ModuleNotFoundError: ...
Fix the missing import or dependency in this project, then run agentswarm again.

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