Skip to content

[Bug]: Tomli dependency missingΒ #223

@paolodm

Description

@paolodm

Contact Details

No response

πŸ“¦ Package Version

AgentStack CLI version: 0.2.5.1

🎞️ Framework Version

No response

πŸ”Ž Describe the Bug

When i run agentstack init <name> i get the following error:

agentstack init example
Traceback (most recent call last):
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/bin/agentstack", line 5, in
from agentstack.main import main
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/lib/python3.10/site-packages/agentstack/main.py", line 7, in
from agentstack.cli import (
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/lib/python3.10/site-packages/agentstack/cli/init.py", line 1, in
from .cli import init_project_builder, configure_default_model, export_template, welcome_message
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/lib/python3.10/site-packages/agentstack/cli/cli.py", line 22, in
from agentstack.generation.files import ProjectFile
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/lib/python3.10/site-packages/agentstack/generation/init.py", line 3, in
from .tool_generation import add_tool, remove_tool
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/lib/python3.10/site-packages/agentstack/generation/tool_generation.py", line 11, in
from agentstack.generation.files import EnvFile
File "/Users/paolo.delmundo/tmp/agentstack-test/.venv/lib/python3.10/site-packages/agentstack/generation/files.py", line 10, in
import tomli as tomllib
ModuleNotFoundError: No module named 'tomli'

If I manually add pip install tomli, only then will it start working.

🀝 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