# Can't run python script on my plugin

**URL:** <https://discuss.elastic.co/t/cant-run-python-script-on-my-plugin/49131>\
**Category:** Kibana\
**Created:** [May 4, 2016, 7:31am UTC](https://discuss.elastic.co/t/cant-run-python-script-on-my-plugin/49131 "2016-05-04T07:31:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkunico](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@pkunico](https://discuss.elastic.co/u/pkunico)\
**Post date:** [May 4, 2016, 7:31am UTC](https://discuss.elastic.co/t/cant-run-python-script-on-my-plugin/49131/1 "2016-05-04T07:31:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [May 5, 2016, 8:03pm UTC](https://discuss.elastic.co/t/cant-run-python-script-on-my-plugin/49131/2 "2016-05-05T20:03:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pkunico](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@pkunico](https://discuss.elastic.co/u/pkunico)\
**Post date:** [May 6, 2016, 1:20am UTC](https://discuss.elastic.co/t/cant-run-python-script-on-my-plugin/49131/3 "2016-05-06T01:20:23Z")

</div>

Thanks，I have got it solved，python can be called from kibana's server plugin

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:54pm UTC](https://discuss.elastic.co/t/cant-run-python-script-on-my-plugin/49131/4 "2017-07-06T13:54:05Z")

</div>


