web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PAD Python script modu...
Power Automate
Answered

PAD Python script module not found

(3) ShareShare
ReportReport
Posted on by 18
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?
I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
    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
  • DA-05092056-0 Profile Picture
    18 on at
    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?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard