pyannote-database icon indicating copy to clipboard operation
pyannote-database copied to clipboard

ImportError: cannot import name 'registry' from 'pyannote.database'

Open axuan731 opened this issue 2 years ago • 3 comments

Hello: I try to apply my own YAML with the command: from pyannote.database import get_protocol But it shows"ImportError: cannot import name 'registry' from 'pyannote.database' (/home/xuan/anaconda3/envs/pyannote/lib/python3.8/site-packages/pyannote/database/init.py)" How can I solve this problem?Thanks^_^

axuan731 avatar Mar 08 '23 11:03 axuan731

😭😭😭

axuan731 avatar Mar 23 '23 13:03 axuan731

To maximise the probability of someone answering your question:

  • if your issue is a bug report, please provide a minimum reproducible example, e.g. a link to a self-contained Google Colab notebook (i.e. containing everthing needed to reproduce the bug: installation of pyannote.audio, downloads of models or test data, etc...)

  • if your issue is a feature request, please read this first and update your request accordingly.

hbredin avatar Mar 23 '23 13:03 hbredin

When I ran pip install pyannote.database and it installed pyannote.database-4.1.3, the registry module wasn't in the __init__.py of the pyannote database package. Reinstalling via pip install git+https://github.com/pyannote/pyannote-database/tree/develop fixed it for me.

mariebiscuit avatar Jul 21 '23 01:07 mariebiscuit