adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

No Agent found

Open mehulGupta7991 opened this issue 1 year ago • 11 comments

Image Everything is done as mentioned in readme.md

mehulGupta7991 avatar Apr 10 '25 03:04 mehulGupta7991

Could you check out https://google.github.io/adk-docs/get-started/quickstart/#run-your-agent and see if you run adk web in the "parent_folder"?

Jacksunwei avatar Apr 10 '25 03:04 Jacksunwei

Well, I had this issue earlier, because there is no agents are available in the folder. It can be fixed by creating a folder and run the init.py code or adding sample agents will fix it.

ShyamSathish005 avatar Apr 10 '25 06:04 ShyamSathish005

Could you try the above suggestions? Closing the issue now. Feel free to re-open if the issue persists.

hangfei avatar Apr 11 '25 03:04 hangfei

Could you try the above suggestions? Closing the issue now. Feel free to re-open if the issue persists.

same error. what should be content in init.py

infiblox avatar Jun 12 '25 22:06 infiblox

I had a same issue. When I run in the console akd run . it works perfect

But in the same directory, if if 'adk web' this samething happens

spent hours trying to fix this but this fixed my issue.

Could you check out https://google.github.io/adk-docs/get-started/quickstart/#run-your-agent and see if you run adk web in the "parent_folder"?

danhong1990 avatar Jun 22 '25 16:06 danhong1990

I had a same issue. When I run in the console akd run . it works perfect

But in the same directory, if if 'adk web' this samething happens

Same here. I think it would be better if adk web and adk run started in the same way.

kevinhongzl avatar Jun 25 '25 03:06 kevinhongzl

Ran into the same issue. From a given directory, the command adk run worked but adk web didn't. Consistency would be good to have.

pgzmnk avatar Oct 26 '25 11:10 pgzmnk

Had this same issue as well, following the readme here: https://google.github.io/adk-docs/agents/config/#build-an-agent

Edit: This worked for me after going to the parent directory of my_agent instead of inside the folder

angelaaaateng avatar Dec 23 '25 04:12 angelaaaateng

This fixed my issue.

The most common cause is running the command from the wrong directory or specifying the path incorrectly. Run adk web from the parent directory of your agent's code folder. Incorrect: adk web my_agent/ (if my_agent is the agent folder) Correct: adk web . (run from the directory containing the my_agent folder) or adk web my_project if your structure is my_project/my_agent/.

zhengpenghu avatar Dec 29 '25 23:12 zhengpenghu

Had this same issue as well, following the readme here: https://google.github.io/adk-docs/agents/config/#build-an-agent

Edit: This worked for me after going to the parent directory of my_agent instead of inside the folder

This worked for me too.

rgddos avatar Feb 13 '26 14:02 rgddos

This fixed my issue.

The most common cause is running the command from the wrong directory or specifying the path incorrectly. Run adk web from the parent directory of your agent's code folder. Incorrect: adk web my_agent/ (if my_agent is the agent folder) Correct: adk web . (run from the directory containing the my_agent folder) or adk web my_project if your structure is my_project/my_agent/.

Thanks. This fixed the issue for me

iMichaelOwolabi avatar Feb 15 '26 20:02 iMichaelOwolabi