# Logstash doesn't recognize zeep-python

**URL:** <https://discuss.elastic.co/t/logstash-doesnt-recognize-zeep-python/189601>\
**Category:** Logstash\
**Created:** [July 9, 2019, 5:06pm UTC](https://discuss.elastic.co/t/logstash-doesnt-recognize-zeep-python/189601 "2019-07-09T17:06:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![He\_Pamela](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/he_pamela/32/42370_2.png) [@He\_Pamela](https://discuss.elastic.co/u/He_Pamela)\
**Post date:** [July 9, 2019, 5:06pm UTC](https://discuss.elastic.co/t/logstash-doesnt-recognize-zeep-python/189601/1 "2019-07-09T17:06:59Z")

</div>

Hi , I have a python Script and I receive a SOAP web service data. in my logstash I call the python script with an exec input and then I send the data to Elasticsearch.

When I run logstash manually the data is send it to Elasticsearch without any problem.  
But when I run logstash as a service I got an error from logstash with zeep.

the config file :

> input {  
> exec {  
> command =\> "/usr/bin/python2.7 /home/operador/ELK/wsstates.py"  
> interval =\> 60  
> codec =\> "json"  
> tags =\> state  
> }  
> }  
> output {  
> if "state" in [tags]  
> {  
> elasticsearch {  
> ssl =\> true  
> ssl\_certificate\_verification =\> false  
> hosts =\> ["[https://xx.xx.xx.xx:9200](https://xx.xx.xx.xx:9200)"]  
> index =\> "state"  
> user =\> "user"  
> password =\> "password"  
> }  
> stdout { codec =\> rubydebug } }  
> }

This is the error that I got.

> jul 09 16:37:00 logstash logstash[23142]: File "/home/operador/ELK/wsestadocruces.py", line 3, in   
> jul 09 16:37:00 logstash logstash[23142]: from zeep import Client  
> jul 09 16:37:00 logstash logstash[23142]: ImportError: No module named zeep

This is my python script

> if **name** ==" **main**":
> 
> ```
> from zeep import Client
> import time
> wsdl = 'http://xxx.xx.xx.xx/webservice/service.asmx?wsdl'
> client = Client(wsdl=wsdl)
> print(client.service.GetState('974e-11e9228f2'))
> time.sleep(3)
> 
> ```

I don't know wich could be the problem.

---

<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:** [August 6, 2019, 5:07pm UTC](https://discuss.elastic.co/t/logstash-doesnt-recognize-zeep-python/189601/2 "2019-08-06T17:07:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
