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 Platform Community / Forums / Power Automate / While using Run Python...
Power Automate
Unanswered

While using Run Python Script Action i am getting error

(0) ShareShare
ReportReport
Posted on by 159

Hi,

While using Run Python Script Action i am getting error.

I am using fitz to get coordinates

 

below is my code

 

import fitz

pdf_document = fitz.open('C:\\New folder\\.pdf')
search_text = 'Confirmed on the date first above written:'
for page in doc:
text_instances = page.search_for(search_text)
for text_instance in text_instances:
x0, y0, x1, y1 = text_instance.bbox
print(f"Page {page_num + 1}:")
print(f"Text: {search_text}")
print(f"Bounding Box: ({x0}, {y0}) - ({x1}, {y1})")

 

Error detail is 

neerajpokh_0-1714763698306.png

can anyone please help, i am stucked with that

@Nived_Nambiar 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @neerajpokh 

     

    fitz is an external module , have you specified its path in run python script action ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • neerajpokh Profile Picture
    159 on at

    Hi @Nived_Nambiar 

    can you please provide any code for same requirement.

     

    Yes I have specified its path in run python script action

    neerajpokh_0-1714978039824.png

     

     

  • neerajpokh Profile Picture
    159 on at

    any help please

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 293

#2
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 223 Most Valuable Professional

Last 30 days Overall leaderboard