I have developed a plugin to manage user info on elasticsearch,and need to call a python script,but when require('python-shell'), kibana just can't start up and report the error: Module not found: Error: Cannot resolve module 'child_process' 。I just wrote this in a standalone js file,run from node ,it works very well.
It's so wired, kibana or babel have add some limit?
Are you trying to run this in the browser/from the public
directory? The python-shell module uses child_process
which will be available on the server but not in the browser.
2 Likes
Thanks,I have got it solved,python can be called from kibana's server plugin