# ImportError: cannot import name 'WhisperProcessor' from 'transformers'

**URL:** <https://discuss.huggingface.co/t/importerror-cannot-import-name-whisperprocessor-from-transformers/32980>\
**Category:** Beginners\
**Created:** [March 3, 2023, 4:49pm UTC](https://discuss.huggingface.co/t/importerror-cannot-import-name-whisperprocessor-from-transformers/32980 "2023-03-03T16:49:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laro1](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@laro1](https://discuss.huggingface.co/u/laro1)\
**Post date:** [March 3, 2023, 4:49pm UTC](https://discuss.huggingface.co/t/importerror-cannot-import-name-whisperprocessor-from-transformers/32980/1 "2023-03-03T16:49:38Z")

</div>

I’m trying to run this example:

> **[openai/whisper-small · Hugging Face](https://huggingface.co/openai/whisper-small)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

And gettint error:

> ImportError: cannot import name ‘WhisperProcessor’ from ‘transformers’

Environment:

> python = 3.8  
> torch = 1.13.1+cu117  
> torchaudio = 0.13.1+cu117  
> transformers = 4.19.2

How can I use hugging face whisper model ?

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](https://discuss.huggingface.co/u/stevhliu)\
**Post date:** [March 3, 2023, 4:56pm UTC](https://discuss.huggingface.co/t/importerror-cannot-import-name-whisperprocessor-from-transformers/32980/2 "2023-03-03T16:56:10Z")

</div>

Hi! Can you try updating your version of Transformers and see if that helps?

---

<div class="post-metadata">

**Author:** ![laro1](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@laro1](https://discuss.huggingface.co/u/laro1)\
**Post date:** [March 3, 2023, 4:59pm UTC](https://discuss.huggingface.co/t/importerror-cannot-import-name-whisperprocessor-from-transformers/32980/3 "2023-03-03T16:59:59Z")

</div>

upgrade to 4.26.1 - solved.  
Thanks
