# Pipeline module

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422%3E%5C
**Category:** Beginners\
**Created:** [April 3, 2022, 4:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422 "2022-04-03T16:55:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@Etienne](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FEtienne)%5C
**Post date:** [April 3, 2022, 4:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422%2F1 "2022-04-03T16:55:41Z")

</div>

Hi, I installed transformers following the instructions given on your website and when I try to use the pipeline function for example, I get the following error message :  
register\_loss\_scale\_wrapper() takes 2 positional arguments but 3 were given

---

<div class="post-metadata">

**Author:** ![merve](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/merve/32/49809_2.png) [@merve](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmerve)%5C
**Post date:** [April 4, 2022, 10:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422%2F2 "2022-04-04T10:40:40Z")

</div>

Hello 🤗  
Can you post the code you used for me to reproduce the error?

---

<div class="post-metadata">

**Author:** ![Etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@Etienne](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FEtienne)%5C
**Post date:** [April 4, 2022, 12:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422%2F3 "2022-04-04T12:06:34Z")

</div>

I just did this code to check if my installation went wrong or not :

```auto
from transformers import pipeline
pipe = pipeline("sentiment-analysis")
print(pipe("I love you"))

```

---

<div class="post-metadata">

**Author:** ![merve](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/merve/32/49809_2.png) [@merve](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmerve)%5C
**Post date:** [April 4, 2022, 1:18pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422%2F4 "2022-04-04T13:18:59Z")

</div>

Can you post how you installed it?  
What I did and worked:

```auto
!pip install transformers
from transformers import pipeline

pipe = pipeline("sentiment-analysis")

print(pipe("I love you"))

```

The output:

```auto
No model was supplied, defaulted to distilbert-base-uncased-finetuned-sst-2-english (https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english)

Downloading: 100%

629/629 [00:00<00:00, 14.2kB/s]

Downloading: 100%

255M/255M [00:06<00:00, 42.8MB/s]

Downloading: 100%

48.0/48.0 [00:00<00:00, 858B/s]

Downloading: 100%

226k/226k [00:00<00:00, 930kB/s]

[{'label': 'POSITIVE', 'score': 0.9998656511306763}]

```

---

<div class="post-metadata">

**Author:** ![Etienne](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@Etienne](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FEtienne)%5C
**Post date:** [April 4, 2022, 1:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpipeline-module%2F16422%2F5 "2022-04-04T13:43:35Z")

</div>

I already tried to unistall and reinstall (with pip) it didn’t work but this time it worked I don’t know why.
