no matches found: google-adk[eval]
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:
- Install 'pip install google-adk[eval]'
- 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
same
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 no there is special setup. I've checked in three different machine other than my own machine
- in the first two machines with same setup, i was not able to install
google-adk[eval] - in the third machine it is getting installed, this machine is same as the above two Mac machines.
- 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?
@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 ??
Thank you @kavinkumar807 for the analysis! Yes please help with a PR to revise the message.
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].
@boyangsvl Sure will work on it
same
@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?
@boyangsvl raised PR
@ankursharmas I think I found the issue
zshuses 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