You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I could have had done more investigation, I did not, thinking I was only running a demo from quickstart.
Anyways, try following which should prevent the agent to log the logs into temporary log location.
Go to \{your_env_path}\Lib\site-packages\google\adk\cli\cli_tools_click.py, scroll down to and comment the line 73 that says logs.log_to_tmp_folder() under cli_run() function. Run your agent again.
Reacted by Felipe Velasquez Castro, Ruskin Wadia, das, Felipe Lujan, Belide Aakash, Dip Jyoti Das and Amanda dos Santos
I encountered the same issue on a Windows workstation. Commenting out that line in the site-packages allowed "adk run" to work, but I believe this warrants further review by the dev team, so I'm adding this comment.
Reacted by Nikil P, Patryk Surmacz, Christian Bitter and pierbo121
Hi @acumind and thanks to everyone who participated in this thread.
We're currently doing some housekeeping on our issue tracker. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this issue has been resolved in a newer version. To help us keep our backlog focused on current issues, we are closing this as stale.
If you're still facing this problem, could you please update to the very latest version of the library and confirm the issue still exists? If it does, please comment here, and we will be happy to reopen this issue and investigate further.
Activity
me-tusharchandra commentedon Apr 10, 2025
@acumind probably some permissions issue to network or something similar. Try creating new venv and running it again, it shall work.
cfdcfd commentedon Apr 10, 2025
.venv\Lib\site-packages\google\adk\cli\utils\logs.py
Annotation 67-70 can avoid the error
if os.path.islink(latest_log_link):
os.unlink(latest_log_link)
os.symlink(log_filepath, latest_log_link)
cfdcfd commentedon Apr 10, 2025
or start cmd with administrate
@acumind
nikilpatel94 commentedon Apr 10, 2025
@acumind , yeah it doesn't really make sense.
Although I could have had done more investigation, I did not, thinking I was only running a demo from quickstart.
Anyways, try following which should prevent the agent to log the logs into temporary log location.
Go to
\{your_env_path}\Lib\site-packages\google\adk\cli\cli_tools_click.py, scroll down to and comment the line73that sayslogs.log_to_tmp_folder()undercli_run()function. Run your agent again.hangfei commentedon Apr 13, 2025
Please try the suggested approaches from the community. Feel free to re-open if the issue persists.
twferrell commentedon May 7, 2025
I encountered the same issue on a Windows workstation. Commenting out that line in the site-packages allowed "adk run" to work, but I believe this warrants further review by the dev team, so I'm adding this comment.
FelipeLujan commentedon May 24, 2025
The issue persists. The steps provided by @nikilpatel94 are a workaround, not a solution
flegare commentedon Jul 4, 2025
Since I can't reopen the issue, I created a new one and will try submit a PR #1785
hangfei commentedon Aug 14, 2025
Re-open this. Would love a contribution from the community to fix this.
klateefa commentedon Oct 7, 2025
Hi @acumind and thanks to everyone who participated in this thread.
We're currently doing some housekeeping on our issue tracker. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this issue has been resolved in a newer version. To help us keep our backlog focused on current issues, we are closing this as stale.
If you're still facing this problem, could you please update to the very latest version of the library and confirm the issue still exists? If it does, please comment here, and we will be happy to reopen this issue and investigate further.
Thanks for your contribution and understanding!
fix(cli): Handle the case when OS doesn't support symlink for `adk run`
Merge pull request google#6 from Px8Studio:dev
spike+demo(workflow): contract-hash drift, auditable lint waivers, fr…
fix(cli): Handle the case when OS doesn't support symlink for `adk run`