Error in Load Python Script Activity

Hi All,

I have installed Python 3.6.4 32 bit version in my machine and when executing a python script I am getting an error in Load Python Script Activity.

Load Python Script: There was no endpoint listening at net.pipe://localhost/UiPath.Service/Host_IPythonService_5660 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

I have posted some troubleshooting tips here:

Hi @Karan28 ,

Try installing Python 3.6.4 64 bit version. Even i was facing the same but after installing 64 bit , its working fine for me. Also, Change the environment variable to where your Python executable file is present.

Note: You can download Python 3.6.4 version (64 bit) from the below mentioned link. (Under Files)

Thanks, Hope it helps. Cheers!


Hope giving c/python/3.6 is enough as home path.its 64bit version as my machnie is 64bit. I have selected x64 in uipath as target. Id i select x86 I am getting the above mentioned error. Or else below error

I am still getting the error
RemoteException wrapping System.InvalidOperationException: Error loading Python script β€”> RemoteException wrapping System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: AttributeError : module β€˜sys’ has no attribute β€˜argv’

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.LoadScript(String code)
at UiPath.Python.Impl.OutOfProcessEngine.<>c__DisplayClass11_0.b__0()
at System.Threading.Tasks.Task`1.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.LoadScript.d__12.MoveNext()
β€” End of inner exception stack trace β€”
at UiPath.Python.Activities.LoadScript.d__12.MoveNext()
β€” End of stack trace from previous location where exception was thrown β€”
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)

1 Like

@rahulraj987 Yes, Rahul. If you still face that error then change Target to x64 and version as Python_36 for (3.6 version of Python installed- in UIpath acitivity) in 64 bit of your system.

Hope it helps.

Yea. I tried with x64 and I am getting the above error.

@rahulraj987 Please check the Python version and the folder path in which you have downloaded Python file. Also if you can share the screenshot,it would help understanding error more.(Also the Python scope which you are trying)