lowerquality / gentle

gentle forced aligner

Home Page:https://lowerquality.com/gentle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(SOLVED!) FileNotFoundError: [Errno 2] No such file or directory: 'ext/m3'

coderserif opened this issue · comments

commented

Hey, I'm trying to run a gentle command. But when I do, I get this error.

Can anyone pls explain what I should do?

(simple explanations cus im a total noob)

INFO:root:converting audio to 8K sampled wav
INFO:root:starting alignment
Traceback (most recent call last):
  File "align.py", line 54, in <module>
    aligner = gentle.ForcedAligner(resources, transcript, nthreads=args.nthreads, disfluency=args.disfluency, conservative=args.conservative, disfluencies=disfluencies)
  File "gentle/forced_aligner.py", line 18, in __init__
    gen_hclg_filename = language_model.make_bigram_language_model(ks, resources.proto_langdir, **kwargs)
  File "gentle/language_model.py", line 126, in make_bigram_language_model
    raise e
  File "gentle/language_model.py", line 116, in make_bigram_language_model
    subprocess.check_output([MKGRAPH_PATH,
  File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ext/m3'

any help is appreciated. thx!

I will respond tomorrow and link you the version that always works for me to install. I have also gotten this error many times with this repo and even on a fresh installs of OS

You could look into #295

commented

When I try to download and replace those files, I get this error:

PermissionError: [Errno 13] Permission denied: 'ext/m3'

It's a permission error? I'll see if I can fix it though.

When I try to download and replace those files, I get this error:


PermissionError: [Errno 13] Permission denied: '/Users/SerifPerida/Documents/lazykh-main/gentle-final/ext/m3'

It's a permission error? I'll see if I can fix it though.

sudo chmod +x /Users/SerifPerida/Documents/lazykh-main/gentle-final/ext/m3

commented

figured it out!

I needed to download the correct files from here,
Then apply permissions to both of those files using this command:

sudo chmod +x FILE LOCATION

to both k3, and m3.

After installing more dependencies for the code, the program worked! Though, I will not close this issue until @lilgandhi1199 shares the correct gentle files. Thanks guys!

https://github.com/lowerquality/gentle/files/4671394/gentle-Final.zip
Glad you got it! This is the one I've had most success with