Closed aaronchantrill closed 1 year ago
I think this is probably happening because Naomi detects a previously made profile in the same system.
Also, the initial error log says this:
- if the 'sklearn' package is used by one of your dependencies,
it would be great if you take some time to track which package uses
I think this means that one of the other packages you are using might have sklearn
listed as a dependency.
The installer says exactly what it did. You forced an install ontop of one that already exists so it backed up what was there and then started fresh.
If you start entirely from scratch you can do an install with oneliner for example. Or if you have source then you can go through the process and skip the version select in this case to use the source you already have, put in for developers so that dev work is not overwritten. However, there is a missed case where if you try to install naomi while it is already installed and there is a profile & configs, it will instead back everything up, and then do the version select to get the version you want. But since you are testing the pkg issue with configs it is backing up your changes in an effort to clean slate and then when you skip the version select there is no longer source in the proper dir.
This is definitely a bug that honestly I am surprised hasn't popped up this whole time since the installer overhaul. Now how to fix this is a little complicated. If someone has naomi completely installed & working but then tries to reinstall without affecting the profile & configs, then the config will be out of sync, and depending on the naomi version the profile might be broken. So I am not sure how we should go about that.
@Akul2010 It is the NaomiSTTTrainer.py module that requires sklearn. That module is there to help people adapt their acoustic models using their own recordings. The goal is to eventually find the closest model to the user's voice to allow better adaptation to accents, speech impediments, etc. I just need to update the line in python-requirements.txt and test. I am surprised that pip actually returns an error condition because of this, though.
@AustinCasteel Thanks for thinking about this. It does provide me some strong encouragement to try to optimize the installation procedure, as far as minimizing the number of programs that have to be compiled, which is something I've been avoiding. I certainly appreciate all the work that's gone into getting Naomi to install automatically.
@AustinCasteel I see what's happening now. It is the existence of the ~/.config/naomi folder that is triggering the different behavior. I was confused because that used to not be created until running Naomi with --repopulate. If I delete the ~/.config/naomi folder before re-running the installer, I can skip downloading Naomi.
Fixed with "Fix record and playback during install" pull request #376
Description
When I run the installer, it ends with the following error:
To me, this is just saying that we should replace "sklearn" with "scikit-learn" in python-requirements.txt.
I tried git-cloning a copy of Naomi and updating that line in python-requirements.txt, but every time I try to install Naomi now, it gives me the following choice:
If I select 'Y'es, it appears to delete the ~/Naomi directory and then errors out:
At this point, it does not appear that I can use the installer to install a manually downloaded or modified version of Naomi.
I tried to get around this by setting the SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL variable from the first error message, but then get an error about automake-1.15 not existing on my system (automake-1.16 does exist on my system) when attempting to build OpenFST. At this point I need to look at the whole install process and see how I can simplify things.
Expected Behavior
If I git-clone a copy of Naomi, then cd to the ~/Naomi directory and run ./naomi-setup.sh, it should allow me to bypass downloading a new copy of Naomi by pressing the "S"-Skip character at Version selection.
Actual Behavior
It appears that the installer deletes the ~/Naomi directory when you select "Install" from the first menu, so there is no directory structure if you then select 'S'kip at version selection.
Possible Fix
When installing, don't delete the ~/Naomi directory until after the user selects a version to install. Update the "sklearn" line in python_requirements.txt with "scikit-learn" Re-do the install process. See if it is still necessary to install OpenFST manually.
Steps to Reproduce
naomi-setup.sh
in the newly cloned directoryContext
I'm trying to install Naomi. I am installing under Windows Subsystem for Linux (WSL) on Debian Bullseye. I don't know if these issues affect every version of Bullseye. I'm going to try again on a Bullseye virtual machine.
Your Environment