Invoke python method error : none

Hello All,

Have tried all the usual suspects and still getting this error. Does anyone know the issue?

RemoteException wrapping System.AggregateException: One or more errors occurred. —> RemoteException wrapping System.InvalidOperationException: Error invoking Python method —> RemoteException wrapping System.InvalidOperationException: Python instantiation exception
Python Invoker program exception:
None

at UiPath.Shared.Service.PythonResponse.ThrowExceptionIfNeeded()
at UiPath.Python.Service.PythonProxy.InvokeMethod(Guid instance,
String method,
IEnumerable1 args) at UiPath.Python.Impl.OutOfProcessEngine.<>c__DisplayClass15_0.<InvokeMethod>b__0() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Python.Activities.InvokeMethod.d__16.MoveNext()
— End of inner exception stack trace —
at UiPath.Python.Activities.InvokeMethod.d__16.MoveNext()
— End of inner exception stack trace —
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

Hi @DylanT,

Have you looked into this issue? Could you also share your Python package version and usage image?

Regards,
MY

Thank you for the quick response, Muhammed.
The Load python script looks to be working & is returning me a python object that is then passed to the invoke python method. But it’s there that it is faulting.

Python package is version 1.6.0, libraries & version below.

installed packages

Hello @DylanT ,

Please watch the below video. I think that can solve your issue.

No new information from that, unfortunately. Thinking perhaps it is an issue with the post URL referenced for microsoft.cognitiveservices.azure.com/ since there is no exception referenced in the python invoker.

Looks like some upgrading to do.

Hi @DylanT ,

Have you tried out using a Simple Python Program and Checked if it is working ?

Also if possible, Could you share the Python Code used ?

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