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:
  • Nived_Nambiar Profile Picture
    18,138 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard