Replies: 16 comments 10 replies
|
Also tried with |
|
Try |
|
can you change init.py to __ init __.py? Also have you tried running just 'adk web'? we are using this at work and it's oddly stupid. |
|
Thanks, and my bad - I wrote init.py but the file was correctly named init.py starting in the agent dir with |
|
Ah ok looks like I had probably written it right but markdown is eating the underscores and needs to be escaped |
|
moving to discussions as it seems to be a set up issue rather than an ADK bug. |
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The issue is likely due to either running on an unsupported Python version (3.13.7) or a known problem with
|
|
Following. i am also running into the same issue. |
|
Trying with --no-reload results in the same issue, so did running with Python 3.12.10 (uninstalled all versions of Python, removed venv and rebuilt from scratch). |
|
@boyangsvl consider moving this back to issues, I see this issue as well. Notably |
|
Please note that |
|
The issue (Warning: No agents found in current folder. for adk web) is still there. This is not a setup issue. Some error should be thrown sothat we can troubleshoot. no error is been thrown by the agent code. I am using a Mac. adk run . is working fine problem is with only adk web command. init.py contains from . import agent I tried with python 3.12.8 tried with --no-reload also adk web is Not showing the agent in the UI |
|
@boyangsvl The code I am using to run is from https://google.github.io/adk-docs/get-started/python/#explore-the-agent-project:~:text=the%20following%20code%3A-,from%20google.adk.agents.llm_agent%20import%20Agent,),-Set%20your%20API Tried running it with I have attached all dependencies from pip freeze agentic_requirements.txt |
|
It looks like when I run from my parent folder
It shows the error on the UI that "Warning: No agents found in current folder." But when I run from my parent folder
Then in the UI it shows all the agents I have. So it looks the more of a issues with behaviour does not match with documentation. |
|
This is probably because I didn't have node.js installed. |
|
@ukaer you probably already have it fixed but if not where are you running |

Uh oh!
There was an error while loading. Please reload this page.
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Describe the bug
Running
adk web my_agentloads ui but shows "Warning: No agents found in current folder." and agent is not available in dropdown. Runningadk run my_agentworks fine, running code in init.py loads things fine as well.To Reproduce
Please share a minimal code and data to reproduce your problem.
Steps to reproduce the behavior:
init.py:
from .agent import root_agentagent.py:
adk web my_agentExpected behavior
Web UI should show my agent and allow me to interact with it.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Model Information:
Additional context
Add any other context about the problem here.
All reactions