Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rgvenkateshHi,
I am trying to put up a design to invoke Rest API calls from a Python node, but on Lavastorm I can see some additional brainNode code present in the Python node.
However, when I try to use the below code on the Python node, I get the following error:
Python code for API Call:
import requests
url="http://xxxxxxx"
res=requests.get(url)
res.status_code
Error
ERROR: No module named requests
Error Code: brain.node.ls.brain.node.brainpython.python2implem entationfile.2
ERROR: No module named requests
Error Code: brain.node.NodeMain.cpp.17
------------------------------------
From the error message I guess the requests package is not present which i assumed would be present as part of the Python node.
Can you guys help me understand how this can be fixed?
Regards,
Venkatesh