Skip to main content
Cadet | Tier 2
November 7, 2025
Question

Unable to execute python script-

  • November 7, 2025
  • 4 replies
  • 145 views

I am trying to execute chrome clear cache python script , but its not working. it’s working in python compiler not in AA tool. Having python version is 3.x and AA python in latest package

    4 replies

    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    November 7, 2025

    Hi ​@Ajith 9655,

     

    When you say "not working," do you mean it is silently completing the execution without any result, or is it throwing the Bot Error?

    Padmakumar
    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    November 7, 2025

    @Ajith 9655 Take a look at your Bot Agent logs to find out the exact error from the Python interpreter.

    Those logs are typically located here:

    C:\ProgramData\AutomationAnywhere\BotRunner\Logs

    Cadet | Tier 2
    November 7, 2025

    Hi ​@Ajith 9655,

     

    When you say "not working," do you mean it is silently completing the execution without any result, or is it throwing the Bot Error?

    It’s not throwing any error, executing completely, when I try to print the output it gives TRUE

    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    November 8, 2025

    @Ajith 9655 If it is returning "true", your Python script executed. 

    One very common mistake I see on this message board is when Python code is not in a function, or is trying to call itself as a function. That's not allowed in AA. Could you share a portion of the code?

    You can also search through some of my older posts on this topic.