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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Python Module Error

(0) ShareShare
ReportReport
Posted on by

Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named os

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    PAD uses Python 2.0. It does not support later versions of Python. It does install some modules automatically with the PAD package. So, it is not really always necessary to point to the path where the modules are stored. But if you are missing a module, you need to provide a path to it to the "Module folder paths" field in the Run Python script action.

     

    In my case that's C:\Users\agnius\AppData\Local\Programs\Python\Python38-32\Lib

    Agnius_0-1693406060916.png

    However, since I've got Python 3.8 installed on my system (as you can probably tell from the name of the folder), some modules may not work with PAD at all. It throws a syntax error. 

     

    So, if you want to run a Python script in PAD that requires a Python module that does not come pre-installed with PAD, you would need to install Python 2 on your system and then target the modules library in the Module folder path field.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard