# Got Error 2 while trying to execute a python file in Exec node

**URL:** <https://discourse.nodered.org/t/got-error-2-while-trying-to-execute-a-python-file-in-exec-node/27889>\
**Category:** General\
**Created:** [6 June 2020 12:20 UTC](https://discourse.nodered.org/t/got-error-2-while-trying-to-execute-a-python-file-in-exec-node/27889 "2020-06-06T12:20:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlo](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@karlo](https://discourse.nodered.org/u/karlo)\
**Post date:** [6 June 2020 12:20 UTC](https://discourse.nodered.org/t/got-error-2-while-trying-to-execute-a-python-file-in-exec-node/27889/1 "2020-06-06T12:20:29Z")

</div>

Hello,

I'm trying to execute a python file, that can be found under the absolute path. But I only get the Error: 2  
How can I retrieve more error messages and what is the Problem?

Thank you very much!!

![Node-RED2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae61631cafdf90161db90f185ec964eeec594547.png)  
[Node-RED|690x276](https://discourse.nodered.org/uploads/short-url/XMx01rr7qcbh9c2ytrNSHbKute.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 June 2020 12:39 UTC](https://discourse.nodered.org/t/got-error-2-while-trying-to-execute-a-python-file-in-exec-node/27889/2 "2020-06-06T12:39:42Z")

</div>

Add debug nodes to the other outputs on the exec node, set to Show Complete Message and see what they say. That should give you a clue about what it going wrong.

---

<div class="post-metadata">

**Author:** ![karlo](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@karlo](https://discourse.nodered.org/u/karlo)\
**Post date:** [16 June 2020 19:16 UTC](https://discourse.nodered.org/t/got-error-2-while-trying-to-execute-a-python-file-in-exec-node/27889/3 "2020-06-16T19:16:51Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 August 2020 19:16 UTC](https://discourse.nodered.org/t/got-error-2-while-trying-to-execute-a-python-file-in-exec-node/27889/4 "2020-08-15T19:16:54Z")

</div>

Closed on 15 August 2020 19:16 UTC

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