# Error using philschmid / pyannote-speaker-diarization-endpoint

**URL:** <https://discuss.huggingface.co/t/error-using-philschmid-pyannote-speaker-diarization-endpoint/28386>\
**Category:** Inference Endpoints on the Hub\
**Created:** [December 24, 2022, 10:24pm UTC](https://discuss.huggingface.co/t/error-using-philschmid-pyannote-speaker-diarization-endpoint/28386 "2022-12-24T22:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richmond](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@Richmond](https://discuss.huggingface.co/u/Richmond)\
**Post date:** [December 24, 2022, 10:24pm UTC](https://discuss.huggingface.co/t/error-using-philschmid-pyannote-speaker-diarization-endpoint/28386/1 "2022-12-24T22:24:03Z")

</div>

Error trying to create API Endpoint with pyannote-speaker-diarization-endpoint

Repository id: philschmid/pyannote-speaker-diarization-endpoint  
endpoint name: aws-pyannote-speaker-diarization  
instance type: GPU • small  
have you checked the logs? YES  
describe your issue:

5rsqd 2022-12-21T14:04:46.377Z ImportError: cannot import name ‘login’ from ‘huggingface\_hub’ (/opt/conda/lib/python3.9/site-packages/huggingface\_hub/ **init**.py)

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/f/facd120564569f7576264a09e354027d6bb7421f.png)

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [January 4, 2023, 8:08am UTC](https://discuss.huggingface.co/t/error-using-philschmid-pyannote-speaker-diarization-endpoint/28386/2 "2023-01-04T08:08:27Z")

</div>

As answered via email, the error should be fixed.
