Reputation: 517
I am trying to run a python a script which will update my elasticsearch data base, from a server which is implemented in node.js. My python script requires a csv files to read. though the csv file is present it is giving me this error(shown in image)
Upvotes: 1
Views: 99
Reputation: 3327
I think you will need to specify the filepaths relative to where your Node
script is running from, rather than the Python
one.
So if you have file structure:
- app.js
- /PythonFolder
- script.py
- data.csv
You will need to call the Python using whatever the equivalent to:
python script.py PythonFolder/data.csv
is from Node
.
Upvotes: 3