Skip to main content
Question

Unable to execute python script-

  • November 7, 2025
  • 4 replies
  • 60 views

Forum|alt.badge.img+3

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
Forum|alt.badge.img+15
  • 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?


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • 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


Forum|alt.badge.img+3
  • Author
  • 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
Forum|alt.badge.img+14
  • 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.