Tools like daytona and visualization fails when I used in an agent

(.mrvenv) ***@***review % /Users/**/AI/review/.mrvenv/bin/python /Users/*/AI/review/daytona_tools.py

Traceback (most recent call last):

File “/Users/***/AI/**review/daytona_tools.py”, line 4, in

from agno.tools.daytona import DaytonaTools

ModuleNotFoundError: No module named ‘agno.tools.daytona’

I got same issue for tools=[VisualizationTools(output_dir=“business_charts”)],

May I know why it happens even after installing latest agno and the corresponding libraries like daytona?

Its same for visualization.

from agno.tools.visualization import VisualizationTools

ModuleNotFoundError: No module named ‘agno.tools.visualization’

Am I doing somethign wrong? Just trying to launch the same code in example.

from textwrap import dedent

from agno.agent import Agent
from agno.tools.daytona import DaytonaTools
from agno.models.ollama import Ollama

agent = Agent(
name=“Coding Agent with Daytona tools”,
model=Ollama(id=“llama3.2”),
tools=[DaytonaTools()],
markdown=True,
instructions=dedent(“”"
You are an expert at writing and executing code. You have access to a remote, secure Daytona sandbox.
Your primary purpose is to:
1. Write clear, efficient code based on user requests
2. ALWAYS execute the code in the Daytona sandbox using run_code
3. Show the actual execution results to the user
4. Provide explanations of how the code works and what the output means
Guidelines:
- NEVER just provide code without executing it
- Execute all code using the run_code tool to show real results
- Support Python, JavaScript, and TypeScript execution
- Use file operations (create_file, read_file) when working with scripts
- Install missing packages when needed using run_shell_command
- Always show both the code AND the execution output
- Handle errors gracefully and explain any issues encountered
“”"),
show_tool_calls=True,
)

agent.print_response(
“Write JavaScript code to generate 10 random numbers between 1 and 100, sort them in ascending order, and print each number”, stream=True
)

regards
Sathish

Hi @sathishkumar.chin, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!

Hey @sathishkumar.chin !

Thanks for reaching out.

The Agno sdk doesn’t come bundled with all packages in order to keep the size down. You can however install these packages and from your message, it does seem like you attempted to do this.

Could you check that you installed the packages inside of your virtual env and not globally?

source .mrvenv/bin/activate  # or however you activate your env
pip install agno[daytona]
pip install agno[matplotlib]

Apologies if you’ve done this already, but just following the initial hunch.

Let me know if this helps!

1 Like

Kindly look into it ?

Hey! You should be able to directly install these packages in your environment using pip install daytona matplotlib.

You can confirm the installation using pip show daytona and pip show matplotlib. Let me know if this solves the issue.