# Pythonshell shows error but the script is running in the ssh box

**URL:** <https://discourse.nodered.org/t/pythonshell-shows-error-but-the-script-is-running-in-the-ssh-box/75979>\
**Category:** General\
**Tags:** python\
**Created:** [2 March 2023 07:57 UTC](https://discourse.nodered.org/t/pythonshell-shows-error-but-the-script-is-running-in-the-ssh-box/75979 "2023-03-02T07:57:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dewoalliseged7/32/58702_2.png) [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Post date:** [2 March 2023 07:57 UTC](https://discourse.nodered.org/t/pythonshell-shows-error-but-the-script-is-running-in-the-ssh-box/75979/1 "2023-03-02T07:57:40Z")

</div>

Hello

I would like to run a python script with Node-RED. I added the pythonshell palett.  
I can run the script in the ssh box but if i start the script with the pythonshell i get the error:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/26f6bef80ff52fbb1965be8309e6c39f7ff5813d.png)

(It is two times the same issue)

thx in forward  
Simon

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 March 2023 09:12 UTC](https://discourse.nodered.org/t/pythonshell-shows-error-but-the-script-is-running-in-the-ssh-box/75979/2 "2023-03-02T09:12:57Z")

</div>

> [@DeWoAlliSeged7](#):
>
> I would like to run a python script with Node-RED.

Use the exec node.

---

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dewoalliseged7/32/58702_2.png) [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Post date:** [2 March 2023 10:18 UTC](https://discourse.nodered.org/t/pythonshell-shows-error-but-the-script-is-running-in-the-ssh-box/75979/3 "2023-03-02T10:18:27Z")

</div>

Thx it could be soooo easy \<3

---

<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:** [16 March 2023 10:19 UTC](https://discourse.nodered.org/t/pythonshell-shows-error-but-the-script-is-running-in-the-ssh-box/75979/4 "2023-03-16T10:19:00Z")

</div>

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