Getting error at python scope activity

Hi every one,

@siddharth @Yoichi @J0ska @ashokkarale
getting error at python scope activity at path

path = C:\Program Files (x86)\Python39\V_3.9.8\soft\WPy64\python-3.9.8.amd64

How can I achieve this.

Thank you!!

Hi @victoryv4569 ,

If posuble plz share your Python scope proparty and workflow.

Thanks,

Hi @RajKumar_DC

@RajKumar_DC
Thank you!

@victoryv4569

check this thread as reference

Hi @Krishna_Raj @ashokkarale

For running python script in UiPath does " .Net runtime 6.0 installed" should be installed ?

I developing in office laptop ?

Please Kindly Confirm.

Thank you!!!

@victoryv4569.

Yes it is mandatory.

Thanks,
Ashok :slight_smile:

1 Like

Hi @ashokkarale

installed

but still, its not throwing any error but its just stocked.

Properties are

Please kindly guide me on this, after installation also why bot not able to run ?

Thank you!!!

@victoryv4569,

Is your python path added to environment variable? Check this once.

Try this sample code. It’s on higher version but try changing it as per your setup.
PythonTest.zip (3.3 KB)

Thanks,
Ashok :slight_smile:

1 Like

Hi @ashokkarale

while running the code getting error at “Invoke Python Method”
Ran the same code in python its given the output, but in UiPath got an error

An Error was,

Invoke Python Method: Pipe is broken.

System.IO.IOException: Pipe is broken. at System.IO.Pipes.PipeStream.CheckWriteOperations()
at System.IO.Pipes.PipeStream.Flush()
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.set_AutoFlush(Boolean value)
at UiPath.Python.Service.PythonProxy.RequestAsync(PythonRequest request, CancellationToken ct)
at UiPath.Python.Service.PythonProxy.Shutdown()
at UiPath.Python.Impl.OutOfProcessEngine.Release()
at UiPath.Python.Activities.PythonScope.Cleanup()
at UiPath.Python.Activities.PythonScope.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Properties are,

@victoryv4569,

I would suggest to create new thread for this so this new issue will get noticed by the experts.

Back to your issue, as per this thread it happens when your script returning big size data. The size could vary as per system config but this is the most probable reason.

Other option you have is, if you could working folder of python scope to store the output in some file and read it back wherever required in your code again.

Thanks,
Ashok :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.