Skip to content

Conversation

@paolodm
Copy link

@paolodm paolodm commented Jan 19, 2025

📥 Pull Request

Was getting the following error when I agentstack init <name>.

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'

📘 Description
Fixed missing tomli dependency

@tcdent tcdent self-requested a review January 20, 2025 17:32
Copy link
Collaborator

@tcdent tcdent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks for your contribution @paolodm !

Tests failed to catch this because tomli is a dependency of CrewAI so was installed in the test environment. However, since AgentStack without a framework installed does not install crew, the dependency is missing in new install.

@tcdent tcdent merged commit f8ea4f5 into agentstack-ai:main Jan 20, 2025
1 check passed
@tcdent tcdent mentioned this pull request Jan 20, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants