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

no matches found: google-adk[eval]

Open kavinkumar807 opened this issue 1 year ago • 11 comments

Describe the bug when I try to use eval in adk, there is an exceptionEval module is not installed, please install via "pip install google-adk[eval]". I followed the exception and tried to install eval dependencies using pip install google-adk[eval] . I'm getting no matches found: google-adk[eval]

To Reproduce Steps to reproduce the behavior:

  1. Install 'pip install google-adk[eval]'
  2. See error I'm getting no matches found: google-adk[eval]

Expected behavior The eval dependencies to be installed correctly.

Desktop (please complete the following information):

  • OS: [macOs Sequoia]
  • Python version: 3.13.2
  • ADK version: 1.7.0

Additional context I guess the latest package is not published with the extras

kavinkumar807 avatar Jul 21 '25 11:07 kavinkumar807

same

yza740 avatar Jul 21 '25 16:07 yza740

I am unable to reproduce this issue locally. I tried with python3.12 and python3.13, and for both I was able to get pip install google-adk[eval] to work.

Is there anything special about your set up?

ankursharmas avatar Jul 22 '25 01:07 ankursharmas

@ankursharmas no there is special setup. I've checked in three different machine other than my own machine

  1. in the first two machines with same setup, i was not able to install google-adk[eval]
  2. in the third machine it is getting installed, this machine is same as the above two Mac machines.
  3. and I tried in codespaces replicating my setup, there it is getting installed correctly, it is ubuntu machine.

But in my machine google-adk is getting installed and not eval.

@yza740 can you confirm, what setup you have?

kavinkumar807 avatar Jul 22 '25 07:07 kavinkumar807

@ankursharmas I think I found the issue

zsh uses square brackets for globbing / pattern matching.

That means that if you need to pass literal square brackets as an argument to a command, you either need to escape them or quote the argument like this:

pip install 'google-adk[eval]'

To disable globbing for the pip command permanently, you can do so by adding this to your ~/.zshrc:

alias pip='noglob pip'

shall I add this pip install 'google-adk[eval]' as part of the current exception string MISSING_EVAL_DEPENDENCIES_MESSAGE ? and Raise PR ??

kavinkumar807 avatar Jul 22 '25 11:07 kavinkumar807

Thank you @kavinkumar807 for the analysis! Yes please help with a PR to revise the message.

boyangsvl avatar Jul 22 '25 23:07 boyangsvl

I am able to install the google-adk[eval] by using pip3 install google-adk[eval]. However, I rerun the adk eval after installation , still throw me same error again, Error: Eval module is not installed, please install via pip install google-adk[eval].

yza740 avatar Jul 22 '25 23:07 yza740

@boyangsvl Sure will work on it

kavinkumar807 avatar Jul 23 '25 05:07 kavinkumar807

same

xuguozhi avatar Jul 23 '25 07:07 xuguozhi

@yza740 can you check whether these below packages are installed when you install google-adk[eval]

"google-cloud-aiplatform[evaluation]>=1.100.0",
 "pandas>=2.2.3",
 "tabulate>=0.9.0",
 "rouge-score>=0.1.2",

@xuguozhi you were not able to install the package ? or it is not working after installation?

kavinkumar807 avatar Jul 23 '25 17:07 kavinkumar807

@boyangsvl raised PR

kavinkumar807 avatar Jul 24 '25 04:07 kavinkumar807

@ankursharmas I think I found the issue

zsh uses square brackets for globbing / pattern matching.

That means that if you need to pass literal square brackets as an argument to a command, you either need to escape them or quote the argument like this:

pip install 'google-adk[eval]'

To disable globbing for the pip command permanently, you can do so by adding this to your ~/.zshrc:

alias pip='noglob pip'

shall I add this pip install 'google-adk[eval]' as part of the current exception string MISSING_EVAL_DEPENDENCIES_MESSAGE ? and Raise PR ??

Confirmed this was the issue. Using the quotations fixed it for me

AshciR avatar Jul 30 '25 01:07 AshciR