# Script Python doesn't work

**URL:** <https://forum.uipath.com/t/script-python-doesnt-work/156235>\
**Category:** Help\
**Tags:** studio, python, activities\
**Created:** [October 3, 2019, 10:49am UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235 "2019-10-03T10:49:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcocRPA](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marcocrpa/32/92150_2.png) [@marcocRPA](https://forum.uipath.com/u/marcocRPA)\
**Post date:** [October 3, 2019, 10:49am UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/1 "2019-10-03T10:49:02Z")

</div>

[runScript.zip](https://forum.uipath.com/uploads/short-url/518wzKSqluOaSnY3Al6e5Qbovsq.zip) (13.3 KB)

I can run a Python Script directly (it create a file) but I can’t using RunScript activity in UiPath.

Someone can help me please

---

<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:** [October 3, 2019, 3:09pm UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/2 "2019-10-03T15:09:54Z")

</div>

Can you post the error you are getting @marcocRPA?

---

<div class="post-metadata">

**Author:** ![marcocRPA](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marcocrpa/32/92150_2.png) [@marcocRPA](https://forum.uipath.com/u/marcocRPA)\
**Post date:** [October 3, 2019, 3:16pm UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/3 "2019-10-03T15:16:46Z")

</div>

I solve that, but now I have this error(I’m using Python 3.6 and Anaconda):

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]]: ImportError : Traceback (most recent call last):  
File “C:\Python3.6\lib\site-packages\tensorflow\python\pywrap\_tensorflow\_internal.py”,  
line 18,  
in swig\_import\_helper  
fp,  
pathname,  
description = imp.find\_module(‘\_pywrap\_tensorflow\_internal’,  
[dirname( **file** )])  
File “C:\Python3.6\lib\imp.py”,  
line 297,  
in find\_module  
raise ImportError(\_ERR\_MSG.format(name),  
name=name)  
ImportError: No module named ‘\_pywrap\_tensorflow\_internal’

During handling of the above exception,  
another exception occurred:

Traceback (most recent call last):  
File “C:\Python3.6\lib\site-packages\tensorflow\python\pywrap\_tensorflow.py”,  
line 58,  
in   
from tensorflow.python.pywrap\_tensorflow\_internal import \*  
File “C:\Python3.6\lib\site-packages\tensorflow\python\pywrap\_tensorflow\_internal.py”,  
line 28,  
in   
\_pywrap\_tensorflow\_internal = swig\_import\_helper()  
File “C:\Python3.6\lib\site-packages\tensorflow\python\pywrap\_tensorflow\_internal.py”,  
line 20,  
in swig\_import\_helper  
import \_pywrap\_tensorflow\_internal  
ModuleNotFoundError: No module named ‘\_pywrap\_tensorflow\_internal’

Failed to load the native TensorFlow runtime.

See [Compila e instala mensajes de error &nbsp;|&nbsp; TensorFlow](https://www.tensorflow.org/install/errors)

for some common reasons and solutions. Include the entire stack trace  
above this error message when asking for help.

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:** ![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:** [October 3, 2019, 3:30pm UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/4 "2019-10-03T15:30:35Z")

</div>

> [@marcocRPA](#):
>
> No module named ‘\_pywrap\_tensorflow\_internal’

It states you don’t have the package @marcocRPA, Can you please check?

---

<div class="post-metadata">

**Author:** ![marcocRPA](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marcocrpa/32/92150_2.png) [@marcocRPA](https://forum.uipath.com/u/marcocRPA)\
**Post date:** [October 3, 2019, 3:43pm UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/5 "2019-10-03T15:43:56Z")

</div>

@HareeshMR Which one?

---

<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:** [October 3, 2019, 4:27pm UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/6 "2019-10-03T16:27:58Z")

</div>

As quoted in the above

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [October 10, 2019, 1:18pm UTC](https://forum.uipath.com/t/script-python-doesnt-work/156235/7 "2019-10-10T13:18:36Z")

</div>

Closed on October 10, 2019, 1:18pm UTC

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