# Error in Load Python Script Activity

**URL:** <https://forum.uipath.com/t/error-in-load-python-script-activity/184800>\
**Category:** Help\
**Tags:** python, error, activities\
**Created:** [Janeiro 14, 2020, 7:01am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800 "2020-01-14T07:01:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan28](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karan28/32/109261_2.png) [@Karan28](https://forum.uipath.com/u/Karan28)\
**Post date:** [Janeiro 14, 2020, 7:01am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/1 "2020-01-14T07:01:07Z")

</div>

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.

Error:-  
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.

---

<div class="post-metadata">

**Author:** ![ronanpeter](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ronanpeter/32/176941_2.png) [@ronanpeter](https://forum.uipath.com/u/ronanpeter)\
**Post date:** [Janeiro 14, 2020, 11:48am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/2 "2020-01-14T11:48:50Z")

</div>

I have posted some troubleshooting tips here:

> [@Unable to load Python (anaconda) script](https://forum.uipath.com/t/unable-to-load-python-anaconda-script/184453):
>
> Dear all, I’m trying to load in a Python3.6.8 script made in an Anaconda env. But i get 2 error messages. Most of the time it reads: No endpoint listening at UiPath.Service/Host\_IPythonService\_\*\*\*\* (System.servicemodel.endpointnotfoundexception) or simply could not load python script. Even the simplest of script doesnt work. Any of you got some tips? Many thanks in advance. Greetings

---

<div class="post-metadata">

**Author:** ![Nitesh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nitesh/32/166844_2.png) [@Nitesh](https://forum.uipath.com/u/Nitesh)\
**Post date:** [Julho 30, 2020, 8:46pm UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/3 "2020-07-30T20:46:36Z")

</div>

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)

> **[Python Release Python 3.6.4](https://www.python.org/downloads/release/python-364/)**
>
> The official home of the Python Programming Language

Thanks, Hope it helps. Cheers!

Nitesh

---

<div class="post-metadata">

**Author:** ![rahulraj987](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rahulraj987/32/176642_2.png) [@rahulraj987](https://forum.uipath.com/u/rahulraj987)\
**Post date:** [Agosto 6, 2020, 7:51am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/4 "2020-08-06T07:51:17Z")

</div>

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=4.0.0.0, 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)

---

<div class="post-metadata">

**Author:** ![Nitesh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nitesh/32/166844_2.png) [@Nitesh](https://forum.uipath.com/u/Nitesh)\
**Post date:** [Agosto 6, 2020, 8:50am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/5 "2020-08-06T08:50:41Z")

</div>

@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.  
Cheers!  
Nitesh

---

<div class="post-metadata">

**Author:** ![rahulraj987](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rahulraj987/32/176642_2.png) [@rahulraj987](https://forum.uipath.com/u/rahulraj987)\
**Post date:** [Agosto 7, 2020, 8:01am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/6 "2020-08-07T08:01:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nitesh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nitesh/32/166844_2.png) [@Nitesh](https://forum.uipath.com/u/Nitesh)\
**Post date:** [Agosto 7, 2020, 8:52am UTC](https://forum.uipath.com/t/error-in-load-python-script-activity/184800/7 "2020-08-07T08:52:00Z")

</div>

@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)
