Python Shell node

#1

Hi,
I'm facing error as "pyfile not exist" in PYTHONSHELL NODE after declaring the path,

image

#2

This is the same screenshot @Trainocate posted earlier....

It means that file does not exist on the device running Node-RED.

#3

If it is running on Windows you may also need to escape those \ so c:\\users\\ ... etc

#4

that file do exist.
image

#5

And that is the same machine running Node-RED?

The (now deleted) question from @Trainocate was running in IBM Cloud.

#6

Node-red is used in IBM cloud but the file I'm trying to add is located in my local machine, will that be accepted to use file from local machine when node red is running in IBM cloud?

#7

No the node works with files located on the server running node-red.

1 Like
#8

How does the machine running in the cloud access files running on your local machine? It doesn't.

You'll have to add the file to your application image using the same continuous delivery feature you used to edit package.json

1 Like
#9

Thank you Nick, yes I have already enabled continuous delivery feature in my IBM cloud, exactly where the file has to be updated and is there anyway the file I update in continuous delivery could get mapped in node red?
What is that Application image is all about?

#10

Sorry, I'm out and about today. Can't give you a complete guide on this. But there are guides online for how to use the continuous delivery feature (not Node-RED specific) that you should be able to find and learn from.

#11

Once you get back please share us the link to add files to node red from IBM cloud.

#12

Google will help find you a link.

#13

Or use forward slashes which Windows also understands.

1 Like