Uipath.python.host

hello everyone,

I have a problem with the uipath python package, basically inside the process state, in the reframework, I call a script in python for the manipulation of some images.

This works most of the time, while every so often, this thing happens every 30 transactions, the activity “load python script” hangs, without any error message. The only thing I can do in these situations is to kill the activity “uipath.python.host”, at which point the activity fails and restarts without interruption for a while. Until it happens again.

Now, if it was a script problem it should never work, I have python 3.10 installed x64.

what can be the error?
Thanks

UPDATE:

The error in “load python script activity” is: value cannot be null: parameter name: stream