# An error occurs in executing a python script

**URL:** <https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858>\
**Category:** Help\
**Tags:** studio, python, error, activities\
**Created:** [January 10, 2020, 7:25am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858 "2020-01-10T07:25:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kang0068](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kang0068](https://forum.uipath.com/u/kang0068)\
**Post date:** [January 10, 2020, 7:25am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/1 "2020-01-10T07:25:54Z")

</div>

Hi all,  
I have a problem about executing python script  
I followed like this link : [Activities - Invoking a Python Script](https://docs.uipath.com/activities/docs/invoking-a-python-script)  
But cannot success ☹

 ![캡처](https://global.discourse-cdn.com/uipath/original/3X/c/8/c8ccc6dcb9835bf7cf8c7b4d62abb1828560526d.png) ![캡처2](https://global.discourse-cdn.com/uipath/original/3X/d/8/d8c2e5582dd9f2d7d31af669e405151ae5d53642.png) ![캡처3](https://global.discourse-cdn.com/uipath/original/3X/9/d/9df3162dd35ac09e82139cf563f6927ab8f14cbd.png)

Here are specifics and error message above,  
and the python code below

 ![캡처4](https://global.discourse-cdn.com/uipath/original/3X/c/7/c7438b1d5a414a11fd043605a8ae2481b713e73d.png)

please help !

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [January 10, 2020, 7:48am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/2 "2020-01-10T07:48:05Z")

</div>

Hi  
May I know what is the python version mentioned  
Cheers @kang0068

---

<div class="post-metadata">

**Author:** ![kang0068](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kang0068](https://forum.uipath.com/u/kang0068)\
**Post date:** [January 10, 2020, 8:04am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/3 "2020-01-10T08:04:44Z")

</div>

Hi @Palaniyappan,  
The version of python is 3.6.6

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [January 10, 2020, 8:11am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/4 "2020-01-10T08:11:24Z")

</div>

Kindly install 3.6 and try once  
@kang0068

---

<div class="post-metadata">

**Author:** ![kang0068](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kang0068](https://forum.uipath.com/u/kang0068)\
**Post date:** [January 10, 2020, 8:25am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/5 "2020-01-10T08:25:26Z")

</div>

Thank you for your advice  
I tried it, but the result was same…

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [January 10, 2020, 8:26am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/6 "2020-01-10T08:26:05Z")

</div>

Can I have a view on property panel of python scope if possible  
@kang0068

---

<div class="post-metadata">

**Author:** ![kang0068](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kang0068](https://forum.uipath.com/u/kang0068)\
**Post date:** [January 10, 2020, 8:27am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/7 "2020-01-10T08:27:32Z")

</div>

Of course  
here it is  
 ![캡처](https://global.discourse-cdn.com/uipath/original/3X/c/0/c0134363d56a739f0dc077458c6ca2ea7bdc8cf4.png)  
 ![캡처2](https://global.discourse-cdn.com/uipath/original/3X/a/a/aa1ace53efdb41bb4644b797a2768d225cad3ef5.png)

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [January 10, 2020, 8:29am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/8 "2020-01-10T08:29:14Z")

</div>

I think the issue with file pathKindly check them once like mention them with the filepath of python exe file

Cheers @kang0068

---

<div class="post-metadata">

**Author:** ![kang0068](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kang0068](https://forum.uipath.com/u/kang0068)\
**Post date:** [January 10, 2020, 8:49am UTC](https://forum.uipath.com/t/an-error-occurs-in-executing-a-python-script/183858/9 "2020-01-10T08:49:13Z")

</div>

If I include ‘python.exe’ at the end of the file path, I could find the different error.  
maybe the python version and file path are not problem…
