UiPath Python Activities not working for 64 Bit Python Interprettor


I have been trying to work with NLP/ML python libraries which work with 64 Bit Python Interpreter, but the problem is that UiPath is no longer supporting Python call via 64 Bit Interpreter. While at the same time it works fine with 32 bit

Any update or help on that will be really great?

Below is the error -


Source: Python Scope

Message: Error initializing Python engine

Exception Type: System.InvalidOperationException

RemoteException wrapping System.InvalidOperationException: Error initializing Python engine —> RemoteException wrapping System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: Exception has been thrown by the target of an invocation.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object ins, Object outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at UiPath.Python.Service.IPythonService.Initialize(String path, Version version, String workingFolder)
at UiPath.Python.Impl.OutOfProcessEngine.Initialize(String workingFolder, CancellationToken ct)
at UiPath.Python.Activities.PythonScope.d__32.MoveNext()
— End of inner exception stack trace —
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hi @sumit_1521

Please watch these videos about invoking python code in UiPath. They could help you:
Video 1: UiPath | Download Python | Install Python | How to install python to invoke python script in UiPath - YouTube
Video 2: UiPath | Add Python Activities | How to add Python activities to UiPath to Invoke Python Code - YouTube
Video 3: UiPath | Invoke Python Script | Invoke Python Code | How to invoke python code in UiPath | Python - YouTube

Best regards

Hi @Dawodm Thanks for reply.

But the issue is only with 64 bit interpreter of Python, with 32 bit I am able to run the python activities.

Do you have any work around on that?

It seems UiPath has provided fix in the new release for the Python activities, so working fine now

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