# Pipeline module

**URL:** <https://discuss.huggingface.co/t/pipeline-module/16422>\
**Category:** Beginners\
**Created:** [April 3, 2022, 4:55pm UTC](https://discuss.huggingface.co/t/pipeline-module/16422 "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](https://discuss.huggingface.co/u/Etienne)\
**Post date:** [April 3, 2022, 4:55pm UTC](https://discuss.huggingface.co/t/pipeline-module/16422/1 "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](https://discuss.huggingface.co/u/merve)\
**Post date:** [April 4, 2022, 10:40am UTC](https://discuss.huggingface.co/t/pipeline-module/16422/2 "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](https://discuss.huggingface.co/u/Etienne)\
**Post date:** [April 4, 2022, 12:06pm UTC](https://discuss.huggingface.co/t/pipeline-module/16422/3 "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](https://discuss.huggingface.co/u/merve)\
**Post date:** [April 4, 2022, 1:18pm UTC](https://discuss.huggingface.co/t/pipeline-module/16422/4 "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](https://discuss.huggingface.co/u/Etienne)\
**Post date:** [April 4, 2022, 1:43pm UTC](https://discuss.huggingface.co/t/pipeline-module/16422/5 "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.
