# Unable to execute Python script , getting "Execute Python Script.0 - ERROR (version 5.3.0 from 2019-12-03) : Unexpected error"

**URL:** <https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949>\
**Category:** Get Help & Discuss\
**Created:** [April 11, 2020, 4:22am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949 "2020-04-11T04:22:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfurts](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@lfurts](https://community.automationedge.com/u/lfurts)\
**Post date:** [April 11, 2020, 4:22am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/1 "2020-04-11T04:22:57Z")

</div>

Unable to execute Python Script (Python 3.7.7)

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/6efef04c95bd7c6e41c6f3bb540a54d453327aaa.png)

Demo script execution falure

---

<div class="post-metadata">

**Author:** ![rakesh.kale](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rakesh.kale](https://community.automationedge.com/u/rakesh.kale)\
**Post date:** [April 13, 2020, 6:21am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/2 "2020-04-13T06:21:19Z")

</div>

Hi,

Could you please share your workflow for reference.

---

<div class="post-metadata">

**Author:** ![BhagyashriC](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@BhagyashriC](https://community.automationedge.com/u/BhagyashriC)\
**Post date:** [April 13, 2020, 10:59am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/3 "2020-04-13T10:59:36Z")

</div>

Please check with this sample workflow.

[WF\_PythonDemo.psw](https://community.automationedge.com/uploads/short-url/a8dW639jI7tcr2QRDoLJV7tQ2LC.psw) (17.2 KB)

---

<div class="post-metadata">

**Author:** ![lfurts](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@lfurts](https://community.automationedge.com/u/lfurts)\
**Post date:** [April 13, 2020, 3:08pm UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/4 "2020-04-13T15:08:00Z")

</div>

Hi Bhagyashri,

Executed the sample workflow. Error text file attached.

Thanks  
[python\_error.txt](https://community.automationedge.com/uploads/short-url/wJjWMuFNbkXd0sygILKV9Z9NanE.txt) (8.4 KB)

---

<div class="post-metadata">

**Author:** ![lfurts](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@lfurts](https://community.automationedge.com/u/lfurts)\
**Post date:** [April 21, 2020, 3:59am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/5 "2020-04-21T03:59:12Z")

</div>

Please let me know if Python scripts can be executed ? Else I will have to look for an alternate tool.

Thanks.

---

<div class="post-metadata">

**Author:** ![Ramesh17](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ramesh17](https://community.automationedge.com/u/Ramesh17)\
**Post date:** [June 29, 2021, 1:20pm UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/6 "2021-06-29T13:20:22Z")

</div>

I am also facing the same issue, could please help here?

---

<div class="post-metadata">

**Author:** ![Ramesh17](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ramesh17](https://community.automationedge.com/u/Ramesh17)\
**Post date:** [July 2, 2021, 4:43am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/7 "2021-07-02T04:43:36Z")

</div>

Hi,

Did you sort this issue out? If yes could you please tell me how? I am getting the same error…

---

<div class="post-metadata">

**Author:** ![Ramesh17](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Ramesh17](https://community.automationedge.com/u/Ramesh17)\
**Post date:** [July 3, 2021, 8:12am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/8 "2021-07-03T08:12:01Z")

</div>

Hello Rakesh,

Can you please help with the solution to this issue.

---

<div class="post-metadata">

**Author:** ![rakesh.kale](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rakesh.kale](https://community.automationedge.com/u/rakesh.kale)\
**Post date:** [July 5, 2021, 10:22am UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/9 "2021-07-05T10:22:41Z")

</div>

Hi Ramesh,

Have you configured the below Prerequisites:

**Prerequisites** :

1. Install Anaconda, Minimum version 4.2.0

2. No need for separate python installation, Anaconda takes care of python installation.

3. Anaconda should be in the PATH.

4. This can be conveniently achieved by enabling “Anaconda in PATH” checkbox during Anaconda installation else,

5. Manually set Anaconda in the PATH environment variable by adding the following to the path

6. \<ANACONDA\_BASE\>; \<ANACONDA\_BASE\>\Library\mingw-w64\bin; \<ANACONDA\_BASE\>\Library\usr\bin; \<ANACONDA\_BASE\>\Library\bin; \<ANACONDA\_BASE\>\Scripts;

---

<div class="post-metadata">

**Author:** ![aditya.devi](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@aditya.devi](https://community.automationedge.com/u/aditya.devi)\
**Post date:** [July 13, 2021, 12:48pm UTC](https://community.automationedge.com/t/unable-to-execute-python-script-getting-execute-python-script-0-error-version-5-3-0-from-2019-12-03-unexpected-error/1949/10 "2021-07-13T12:48:50Z")

</div>

The workflow is working in our environment. Please update the AE version to 5.6.x or above. Attached are the screenshots for your reference.

 ![Execute_PythonScript](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/655c3c023e03be179c80b186688f3c77602d59d5.jpeg)  
 ![ExecutePython_Script](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/7c00814fe018145f89943bc3ea2ff31090183a1d.jpeg)
