MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
3.43k stars 288 forks source link

No such file or directory: '/usr/local/lib/python3.10/dist-packages/ctc_forced_aligner/punctuations.lst' #194

Closed dr-who123 closed 4 months ago

dr-who123 commented 4 months ago

Hey,

Thanks a lot for this script. It used to work fine until a few days ago, but now I am getting the following error after installing the dependencies and importing.

`--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) in <cell line: 14>() 12 import nltk 13 from whisperx.utils import LANGUAGES, TO_LANGUAGE_CODE ---> 14 from ctc_forced_aligner import ( 15 load_alignment_model, 16 generate_emissions,

2 frames /usr/local/lib/python3.10/dist-packages/ctc_forced_aligner/norm_config.py in 173 174 # Load punctuations from MMS-lab data --> 175 with open(f"{os.path.dirname(file)}/punctuations.lst", "r", encoding="utf-8-sig") as punc_f: 176 punc_list = punc_f.readlines() 177

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/ctc_forced_aligner/punctuations.lst'`

How can this be fixed?

MahmoudAshraf97 commented 4 months ago

should be fixed now, reinstall ctc-forced-aligner