# Error Loading Python Script in a particular script but other scripts are working fine

**URL:** <https://forum.uipath.com/t/error-loading-python-script-in-a-particular-script-but-other-scripts-are-working-fine/176356>\
**Category:** Help\
**Tags:** python, activities, error\
**Created:** [2019 年 12 月 11 日午後 12:26 UTC](https://forum.uipath.com/t/error-loading-python-script-in-a-particular-script-but-other-scripts-are-working-fine/176356 "2019-12-11T12:26:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![harishreddy](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harishreddy](https://forum.uipath.com/u/harishreddy)\
**Post date:** [2019 年 12 月 11 日午後 12:26 UTC](https://forum.uipath.com/t/error-loading-python-script-in-a-particular-script-but-other-scripts-are-working-fine/176356/1 "2019-12-11T12:26:37Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/0/d/0d5c1d91a8048e514ab4b42ae2a51a8fadc07ba9.png)

19.11.0-beta.2+Branch.release-v2019.11.0.Sha.a63f04440c571d1ce4db01f500029852a5448737

Source: Load Python Script

Message: Error loading Python script

Exception Type: System.InvalidOperationException

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:** ![Santhosh\_S](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/santhosh_s/32/99804_2.png) [@Santhosh\_S](https://forum.uipath.com/u/Santhosh_S)\
**Post date:** [2019 年 12 月 11 日午後 5:44 UTC](https://forum.uipath.com/t/error-loading-python-script-in-a-particular-script-but-other-scripts-are-working-fine/176356/2 "2019-12-11T17:44:09Z")

</div>

1.Check whether you have given right python installation file path  
2.Check you have selected the right code file.

---

<div class="post-metadata">

**Author:** ![harishreddy](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harishreddy](https://forum.uipath.com/u/harishreddy)\
**Post date:** [2019 年 12 月 12 日午前 5:43 UTC](https://forum.uipath.com/t/error-loading-python-script-in-a-particular-script-but-other-scripts-are-working-fine/176356/3 "2019-12-12T05:43:20Z")

</div>

Path and Code were right. As I mentioned other scripts are working fine.  
Code is executing fine with python.

---

<div class="post-metadata">

**Author:** ![HareeshMR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hareeshmr/32/181825_2.png) [@HareeshMR](https://forum.uipath.com/u/HareeshMR)\
**Post date:** [2019 年 12 月 12 日午前 5:50 UTC](https://forum.uipath.com/t/error-loading-python-script-in-a-particular-script-but-other-scripts-are-working-fine/176356/4 "2019-12-12T05:50:38Z")

</div>

> [@harishreddy](#):
>
> module ‘sys’ has no attribute ‘argv’

Can you check what’s throwing this error? I think this is something with the python version. Please check the same and try to google it
