# Problems with Lab 3 in Lab Guide: Sentiment Analysis and Brand Monitoring

**URL:** <https://discuss.elastic.co/t/problems-with-lab-3-in-lab-guide-sentiment-analysis-and-brand-monitoring/259747>\
**Category:** Elastic Training\
**Created:** [December 28, 2020, 5:00pm UTC](https://discuss.elastic.co/t/problems-with-lab-3-in-lab-guide-sentiment-analysis-and-brand-monitoring/259747 "2020-12-28T17:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbroek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pbroek/32/69990_2.png) [@pbroek](https://discuss.elastic.co/u/pbroek)\
**Post date:** [December 28, 2020, 5:00pm UTC](https://discuss.elastic.co/t/problems-with-lab-3-in-lab-guide-sentiment-analysis-and-brand-monitoring/259747/1 "2020-12-28T17:00:38Z")

</div>

Hello,

I am working on lab 3 in Sentiment Analysis and Brand Monitoring.  
Until Lab 3 question 3 everythin gs is clear. But In Lab 3 question 3 there is no mentioning about starting the lab3.conf.

So I started the lab3 configuration myself with ./logstash-6.3.1/bin/logstash -f pipelines/lab3.conf.  
The logstash runs, but in every document it tries to enrich there are errors:

 ![image1](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b2e115f56828d26ec43eaf60f34d2f6fb26fd72c.png)

Twitter messages come in, but no sentiment or sentiment score is added:

 ![image2](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d05e4780ced47b0467f1dd69c9e70d63259ed78f.png)

I have floowed the lab guide point by point. Seems like something is wrong in the python code.

 ![image3](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27f1b3beb3d023758d921870a60e9e5b4513a260.png)

Any help would be great.

Also, I would like to do the traiing again, but there is no dataset provided to run the labs locally?

Thanks,  
Patrick

---

<div class="post-metadata">

**Author:** ![Melvyn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/melvyn/32/35269_2.png) [@Melvyn](https://discuss.elastic.co/u/Melvyn)\
**Post date:** [January 4, 2021, 7:00pm UTC](https://discuss.elastic.co/t/problems-with-lab-3-in-lab-guide-sentiment-analysis-and-brand-monitoring/259747/2 "2021-01-04T19:00:15Z")

</div>

Hello Patrick,

The problem is coming from the python dependency. In order to make it work updates the requirement.txt file. It should look like the following:

```
flask>=1.0.0
pycparser==2.17
flask-wtf
requests
nltk==3.3.0
numpy==1.15.0
textblob==0.15.0

```

Once you have updated the requirement.txt file, delete the virtual env and recreate it and reinstall the dependencies.

We don't provide any dataset with this training, but you can easily replicate the environnement by downloading logstash/elasticsearch and Kibana.

---

<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:** [February 1, 2021, 7:00pm UTC](https://discuss.elastic.co/t/problems-with-lab-3-in-lab-guide-sentiment-analysis-and-brand-monitoring/259747/3 "2021-02-01T19:00:24Z")

</div>

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