Skip to content

[Bug]: Tool installation fails when they have multiple dependenciesΒ #253

@dhanushreddy291

Description

@dhanushreddy291

πŸ“¦ Package Version

0.3.0

🎞️ Framework Version

No response

πŸ”Ž Describe the Bug

Tool Installation Fails when multiple dependencies are present

Description

There is a bug that prevents tool installations whenever a tool has multiple dependencies. This issue occurs due to errors in parsing the dependency requirements.

Steps to Reproduce

  1. Create a new Codespace or use a local machine.
  2. Install agentstack using:
    pipx install agentstack
  3. Initialize a new project:
    agentstack init my_app
  4. Navigate to the project directory and activate the virtual environment:
    cd my_app  
    source .venv/bin/activate  
  5. Install dependencies:
    uv pip install --requirements pyproject.toml  
  6. Attempt to add tools:
    agentstack tools add neon
    # or  
    agentstack tools add stripe  
  7. The installation fails for tools with multiple dependencies due to an issue in parsing the requirements.

Observed Behavior

  • Tools such as neon and stripe fail to install when they contain multiple dependencies.
  • The installation succeeds for tools with a single dependency, such as perplexity, which only requires requests>=2.30.

Error Logs

Error Logs

Additional Screenshots

Failure Example
Failure Example

Expected Behavior

  • Tools should install correctly regardless of the number of dependencies.
  • Dependency parsing should handle multiple dependencies without errors.

🀝 Contribution

  • Yes, I'd be happy to submit a pull request with these changes.
  • I need some guidance on how to contribute.
  • I'd prefer the AgentStack team to handle this update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions