Skip to content

Elevated Permission Error on Windows #6

Closed

Description

@acumind

I just created a virtual environment and install the adk. While running the sample agent code always gives the following error:

"OSError: [WinError 1314] A required privilege is not held by the client:....."

This error is for not having elevated permissions on windows but i am wondering why the simple program need such permission.

Activity

  1. me-tusharchandra commented on Apr 10, 2025

    @me-tusharchandra

    @acumind probably some permissions issue to network or something similar. Try creating new venv and running it again, it shall work.

  2. cfdcfd commented on Apr 10, 2025

    @cfdcfd

    .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)

  3. cfdcfd commented on Apr 10, 2025

    @cfdcfd

    or start cmd with administrate
    @acumind

  4. nikilpatel94 commented on Apr 10, 2025

    @nikilpatel94

    @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 line 73 that says logs.log_to_tmp_folder() under cli_run() function. Run your agent again.

  5. hangfei commented on Apr 13, 2025

    @hangfei
    Collaborator

    Please try the suggested approaches from the community. Feel free to re-open if the issue persists.

  6. twferrell commented on May 7, 2025

    @twferrell

    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.

  7. FelipeLujan commented on May 24, 2025

    @FelipeLujan

    Please try the suggested approaches from the community. Feel free to re-open if the issue persists.

    The issue persists. The steps provided by @nikilpatel94 are a workaround, not a solution

  8. flegare commented on Jul 4, 2025

    @flegare

    Since I can't reopen the issue, I created a new one and will try submit a PR #1785

  9. hangfei commented on Aug 14, 2025

    @hangfei
    Collaborator

    Re-open this. Would love a contribution from the community to fix this.

  10. added
    question
    on Aug 14, 2025
  11. self-assigned this
    on Oct 7, 2025
  12. klateefa commented on Oct 7, 2025

    @klateefa

    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!

  13. added a commit that references this issue on Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions