lowerquality / gentle

gentle forced aligner
https://lowerquality.com/gentle/
MIT License
1.46k stars 295 forks source link

"RuntimeError: No resource directory /Users/.../gentle/exp. Check GENTLE_RESOURCES_ROOT environment variable?" #314

Closed OmniControlRobot closed 1 year ago

OmniControlRobot commented 1 year ago

I am getting this error when trying to call align.py from the command line on Mac OS 10.12.6 Sierra, Python 3.11:

$ python3 align.py /Volumes/.../5077_FINAL.WAV /Volumes/.../RAY15077_cleaned.txt Traceback (most recent call last): File "/Users/.../gentle/align.py", line 49, in resources = gentle.Resources() ^^^^^^^^^^^^^^^^^^ File "/Users/.../gentle/gentle/resources.py", line 19, in init require_dir(self.proto_langdir) File "/Users/.../gentle/gentle/resources.py", line 16, in require_dir raise RuntimeError("No resource directory %s. Check %s environment variable?" % (path, ENV_VAR)) RuntimeError: No resource directory /Users/.../gentle/exp. Check GENTLE_RESOURCES_ROOT environment variable?

It looks like the issue is that the gentle.Resources() method is looking for a path that ends in "gentle/exp", but that folder isn't in the directory structure.

Does anyone have any suggestions to run this from the command line on a Mac? I don't currently have access to Docker.

WillReynolds5 commented 1 year ago

also got this, looks like it comes from a failure to run ./install.sh

OmniControlRobot commented 1 year ago

Thanks, this was a correct solution.