I am having issue with Invoke Python Method. "Pipe is broken" error

I am trying to use Python in UiPath. This is Python 3.10 btw.

So I am able to “Load Python Script” activity, but the next one “Invoke Python Method”, it would fail. And I would get the error “Pipe is broken”

This would happen when I try to add in a “Import pdfquery”
But if I don’t have “Import” the code would run fine.
I already install pdfquery and fitz btw too, by the pip install in command

Also I try to run this in Visual Studio, and it would run fine.

import pdfquery
import fitz

def test(number)
return number

Something simple like this would have that error. Can you guys help me out? Is there something I gotta set up?

@phiking,

Try this solution.

Thanks,
Ashok :slight_smile: