UiPath.Python.Host Has Stop Work

I have used Python scope and within which Load Script, Invoke method and Get Object activities are used to run a python code.
Each time this python scope is run, the code always stops at the same node without any error reports or new data updates.
For example,each time the process is executed, the expected effect is to generate 13 images. However, it stops working after generating 12 images each time. There are no error reports and no new images are generated. However, I have no problem running python code in pycharm

UiPath Python Package : 1.10.0
Python Version: 3.8



@alex.huang

Welcome to the community

when you say it does not report error without issue it will move to next step or does it get stuck?

also checking the event viewer logs when this happens helps in identifying the issue

cheers

Hi
It is not stuck when move to next step.
When it stuck, UiPath console is nothing to output; the UiPath.Python.Host status alway runing; I check it in PC TASK MANAGER,The process Disk Usage Rate is 0%;

Even when I set a timeout for python scope, no error was reported after exceeding the timeout.I even wish the console could display something,but nothing happened XD;

i check and reinstall .NET 8.0, .NET DESKTOP RUNTIME,UiPath Python Package version,but it not work :smiling_face_with_tear:

@alex.huang

did it get any errors in event viewer logs..can you check that please

do you mean it moves to next or it does not?

cheers

no,it does not
nothing err in logs

@alex.huang

so its stuck in the code

so Please open event viewer check logs there

cheers

cheers

Hi
Nothing to update when its stuck;
when i stop it,throw 2 err



@alex.huang

As per error your python script is either returning something which is not being returned properly

or your python code is failing..pip broken error comes on in those situations

to know better..try to use a try catch in your python code and log the exception you get there

cheers

Thank you for your help
I try it :smiling_face_with_tear: hope it work

1 Like

It does not work; XD
I used try catch in all the positions where I might get stuck in my python code,but nothing happened,awlays stuck; :upside_down_face:

the problem does not lie in the code,maybe?

I change the way the python code run, use cmd to run now :smiling_face_with_tear:

1 Like

@alex.huang

Is it running when using cmd without directly incoking from UiPath?

If so the current package version of python may be an issue..try to change that version

Also do you have any logs that you maintain in python to understand where exactly it is stuck?

Also may I know if there is any output value that you are sending from python?

If so that might be creating the issue as well..just to check remove the output if any and run

Cheers