Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'PhonetisaurusG2P' is not defined #410

Closed
aaronchantrill opened this issue Jun 26, 2024 · 0 comments · Fixed by #411
Closed

name 'PhonetisaurusG2P' is not defined #410

aaronchantrill opened this issue Jun 26, 2024 · 0 comments · Fixed by #411

Comments

@aaronchantrill
Copy link
Contributor

Description

When first running Naomi with a new configuration on a x86_64 system, the pip install phonetisaurus command works, but fails to re-attempt to load the sphinxvocab and PhonetisaurusG2P. This leads to a situation where the default value for hmm_dir is used, but this value is wrong because the locale gets left of the end of it. Since the path exists, Naomi tries to load the cmudict.dict file from that location, but it doesn't exist, which causes the pocketsphinx plugin to fail to load moving forward.

Expected Behavior

sphinxvocab and PhonetisaurusG2P should load correctly, since all the requirements are in place. If the default path is used, it should point to the correct location.

Possible Fix

Two things. First, re-import the sphinxvocab and PhonetisaurusG2P modules after the pip install phonetisaurus command succeeds, second use the correct default for hmm_dir.

Steps to Reproduce

  1. Install Naomi on an x86_64 system
  2. During configuration, it dies with the message "name 'PhonetisaurusG2P' is not defined
  3. Restart without --repopulate
  4. Naomi crashes with message "/config/pocketsphinx/standard/cmudict.dict: File does not exist"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant