Skip to main content

Notifications

Community site session details

Community site session details

Session Id : MqdwsAkuzWF36CmFjRcgy9
Power Automate - Power Automate Desktop
Answered

PAD Python script module not found

Like (2) ShareShare
ReportReport
Posted on 8 Oct 2024 14:17:42 by 16
Hello,
 
Documentation on python script action in Power Automate Desktop is very scarce ☹️
I am using a script to process some text but it requires me to import 2 standard modules and keeps giving error saying module not found:
 
I guess I had to download python 3.4 (even though it is now deprecated) from online somewhere and extract the files onto my machine. After I extracted the files was searching frantically for how to setup PAD so it can recognise the modules in the python directory, saw on some youtube video they set the paths programatically but how can I set the paths manually in the Action window itself. I tried the following but it doesn't work:
 
 
How am I meant to set multiple paths, I tried using semicolon and commas to separate them but it still comes up with an error?
 
Also how can you use standard modules in Run Python script command - everything seems like a struggle?
Categories:
  • DA-05092056-0 Profile Picture
    16 on 16 Oct 2024 at 22:31:39
    PAD Python script module not found
    Unfortunately I can't create another file to store the python code, as this needs to be deployed to another environment as a managed solution in a semi automated process so I can't store any files outside the solution itself.
     
    Is there any way to get it work in the Python action itself within PAD?
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,324 Super User 2025 Season 1 on 08 Oct 2024 at 15:41:57
    PAD Python script module not found
    Hey Hi,
     
    As of my observation to execute Python script in PAD, Run Python script action is not that feasible and it only supports 3.4 and 2.7 versions and few modlues are not supporting with that action.
     
    So try this method to run the Python script using PAD.
     
    Save the Python script as .py file and use Run PowerShell Script action and pass the path as shown in below image.
     
     
    (Note:- if you got your solution you can mark as solution and gives kudos)
     
     
     
    Thanks & Regards
    Vishnu Reddy

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 27 Super User 2025 Season 1

#2
Nived_Nambiar Profile Picture

Nived_Nambiar 18 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 7 Super User 2025 Season 1

Overall leaderboard