# Return PythonShell output to a http response

**URL:** <https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834>\
**Category:** General\
**Created:** [5 May 2019 15:58 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834 "2019-05-05T15:58:07Z")\
**Posts on this page:** 8\
**Page:** 2

<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:** [28 March 2021 11:21 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/21 "2021-03-28T11:21:04Z")

</div>

Are you running the browser on a different computer to node-red? If different can you ping the node-red computer from the one running the browser?

---

<div class="post-metadata">

**Author:** ![mrituanjayss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrituanjayss/32/38962_2.png) [@mrituanjayss](https://discourse.nodered.org/u/mrituanjayss)\
**Post date:** [28 March 2021 11:23 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/22 "2021-03-28T11:23:24Z")

</div>

I'm running NR on the same computer and opening it on Chrome on the same PC. I've tried completely uninstalling and re-installing it but still stuck.

28 Mar 16:48:33 - [info] Settings file : /root/.node-red/settings.js  
28 Mar 16:48:33 - [info] Context store : 'default' [module=memory]  
28 Mar 16:48:33 - [info] User directory : /root/.node-red  
28 Mar 16:48:33 - [warn] Projects disabled : editorTheme.projects.enabled=false  
28 Mar 16:48:33 - [info] Flows file : /root/.node-red/flows\_DESKTOP-O493CRT.json  
28 Mar 16:48:33 - [info] Creating new flow file  
28 Mar 16:48:33 - [warn]

---

<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:** [28 March 2021 11:29 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/23 "2021-03-28T11:29:03Z")

</div>

What OS are you running?  
Is there a reason you are running as root? Note that it is creating a new flows file, which suggests that you were not running as root previously, or that the hostname has changed (DESKTOP-O493CRT).  
What did you do that made it stop working?  
Show us the full node-red startup log and tell us what you are putting in the browser as the url.

---

<div class="post-metadata">

**Author:** ![mrituanjayss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrituanjayss/32/38962_2.png) [@mrituanjayss](https://discourse.nodered.org/u/mrituanjayss)\
**Post date:** [28 March 2021 11:34 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/24 "2021-03-28T11:34:10Z")

</div>

![node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/8/a8d8f4aec7077f4b29fc280db8da4237058b585a.jpeg)

Os- Windows

Running on WSL2

I was going through that pythonshell issue. Then I tried to open node-red and this came up. So I uninstalled NR completely along with it's directory and then re-installed it.

I think I'm facing a really bad day.

---

<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:** [28 March 2021 12:56 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/26 "2021-03-28T12:56:41Z")

</div>

I suspect you may have installed (or are running it) in a different way to originally.

---

<div class="post-metadata">

**Author:** ![mrituanjayss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrituanjayss/32/38962_2.png) [@mrituanjayss](https://discourse.nodered.org/u/mrituanjayss)\
**Post date:** [28 March 2021 13:20 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/27 "2021-03-28T13:20:49Z")

</div>

Can you elaborate?

---

<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:** [28 March 2021 13:48 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/28 "2021-03-28T13:48:07Z")

</div>

No, I don't know how you originally installed and ran it and I don't know how you are doing it now, but it isn't finding the flows file so either it is looking for the wrong file or looking in the wrong folder. That doesn't explain why the browser isn't connecting though.

---

<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:** [28 March 2021 13:57 UTC](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834/29 "2021-03-28T13:57:08Z")

</div>

Perhaps it is a WSL issue, I don't know how that works. Can there be multiple virtual WSL machines? If so perhaps you are in the wrong one. Get someone where you are to help you get out of the mess.

[Previous page](https://discourse.nodered.org/t/return-pythonshell-output-to-a-http-response/10834.md?page=1)
