gitmylo / audio-webui

A webui for different audio related Neural Networks
MIT License
1.01k stars 94 forks source link

[BUG REPORT] #43

Closed nmeftah closed 1 year ago

nmeftah commented 1 year ago

Describe the bug syntax error when running install.bat on windows on line 1"@echo off"

To Reproduce Steps to reproduce the behavior:

  1. python install.bat

Expected behavior expected to install the software

gitmylo commented 1 year ago

don't use the python command to run a batch file. you run it by double clicking the file or typing install.bat in cmd.

nmeftah commented 1 year ago

when running the batch file correctly now i now get an error saying "no suitable python runtime found"

gitmylo commented 1 year ago

open a console, and type "py", if it outputs the same. Install python 3.10 from https://www.python.org/downloads/release/python-31011/

nmeftah commented 1 year ago

when running py it correctly launches the python interface, it does say version 3.11.4 though, does the file only work on 3.10?

gitmylo commented 1 year ago

yeah, only python 3.10 is supported at the moment, as the TTS library does not support newer versions yet

nmeftah commented 1 year ago

ok got it thank you!

nmeftah commented 1 year ago

one last error, after running and completing the install file, when i run the run file i get an error saying "no module named 'TTS'"

gitmylo commented 1 year ago

Are you sure you're running with python 3.10 then?

nmeftah commented 1 year ago

fairly positive, i uninstalled 3.11 before installing 3.10

gitmylo commented 1 year ago

Uninstalling python is usually a bad idea, but send the console output. it should show your python version as like the first thing.

i will be inactive for a bit though, it's getting late here.

nmeftah commented 1 year ago

says its running 3.10.11

nmeftah commented 1 year ago
Screenshot 2023-06-26 132432

heres the screenshot

gitmylo commented 1 year ago

Try this:

  1. open a cmd in the webui's directory
  2. run venv\Scripts\activate.bat
  3. it should now show "(venv)" at the start of your cmd input
  4. run pip install TTS
  5. if this fails to install, delete your venv folder, and run install again. as that would mean the venv was using the wrong python version
nmeftah commented 1 year ago

sounds good, ill let ya get some rest now lol

nmeftah commented 1 year ago

i gave what you said a try and when i tried reinstalling i noticed a message saying "could not build wheels for TTS" along with a recommendation to update my pip. let me know what you think once youre awake again

gitmylo commented 1 year ago

i'd need the full error message to know what failed when building wheels

usually it's because you don't have visual studio c++ build tools installed.

nmeftah commented 1 year ago
Screenshot 2023-06-27 162250

heres the full error message when running pip to install TTS

gitmylo commented 1 year ago

Yeah, you need visual studio build tools.

follow the link in that error message, and download the build tools.

nmeftah commented 1 year ago
Screenshot 2023-06-27 170224
nmeftah commented 1 year ago

any idea how to fix this error?

nmeftah commented 1 year ago

im also seeing a lot of errors regarding pips dependency resolver if you have any insights into that

gitmylo commented 1 year ago

Not sure, maybe you could find more info on it by searching for the error message, although i'm not sure which part of the error message shows the issue. I've never seen this error before, at least that i remember.

The errors with pip's dependency resolver are because every package is installed separately, since i use a custom format for installing the packages.

nmeftah commented 1 year ago

so the dependency error i shouldnt worry about?

nmeftah commented 1 year ago
Screenshot 2023-06-27 171920

this is another modulenot found error i didnt have much luck finding answers for online

gitmylo commented 1 year ago

so the dependency error i shouldnt worry about?

Yeah, that's not really something to worry about.

Screenshot 2023-06-27 171920

this is another modulenot found error i didnt have much luck finding answers for online

This is probably because of the error you sent above, it failed to install.

You can alternatively try installing scikit_learn manually. And then once that's done, run the install.bat again. To install scikit_learn manually:

  1. run activate_only.bat (if it's not in your audio-webui folder, update to the latest version)
  2. from here download scikit_learn‑1.1.1‑cp310‑cp310‑win_amd64.whl or scikit_learn‑1.1.1‑cp310‑cp310‑win32.whl (amd64 if you have a 64-bit cpu, win32 if you have a 32-bit cpu. You probably want amd64, as most cpus nowadays are 64-bits)
  3. in the cmd window from step 1, run pip install [filename] where [filename] is the path to the file that you downloaded on step 2.
nmeftah commented 1 year ago

alright, let me see how that goes

nmeftah commented 1 year ago

after installing the scikit manually i still get the same modulenotfound error when running

gitmylo commented 1 year ago

did you also re-run install.bat? since that's important if you installed scikit manually.

nmeftah commented 1 year ago

yes i did

gitmylo commented 1 year ago

What was the error in the console during install now?

nmeftah commented 1 year ago

there was no install error, there an error when running the run.bat file which was the same as the screenshot i attached above saying no module named audiolm_pytorch

gitmylo commented 1 year ago

Can you try opening the activate_only.bat again, and running pip install audiolm-pytorch? I will see if i can improve the automatic installers in the future. So it knows by itsself where the install failed, and so it can suggest a solution.

nmeftah commented 1 year ago

just tried this and now in the venv it says failed building wheel for scikit-learn again

gitmylo commented 1 year ago

odd, i don't think that should happen if you already have it installed from the steps before. Are you sure you installed it in your virtual environment? (aka, it says "(venv)" before the command prompt input)

nmeftah commented 1 year ago

almost certain i did

nmeftah commented 1 year ago

is there any way to check?

gitmylo commented 1 year ago

Inside of the venv, run pip freeze, and look for scikit-learn. It should show the version which is installed.

nmeftah commented 1 year ago

shows scikit-learn with the path i copied leading to the downloaded file

gitmylo commented 1 year ago

I don't know why it isn't working then. Back to the issue from before then. Something's wrong which is causing it to be unable to install scikit-learn.

Assuming pip install scikit-learn gives the same error. Maybe try pip install scipy and then pip install scikit-learn

nmeftah commented 1 year ago

let me give that a try

nmeftah commented 1 year ago

says they are both already satisfied

gitmylo commented 1 year ago

I don't know then. I'll try re-installing it myself as it seems it updated recently. If i get the same error, i will downgrade the version for it to use.

nmeftah commented 1 year ago

sounds good, thank you

gitmylo commented 1 year ago

It passed the wheel building, so i don't know what's going on for you. Try it on another machine. Or alternatively, use the google colab.

nmeftah commented 1 year ago

ill try a clean install as well and see if it works

nmeftah commented 1 year ago

when redoing the install the only thing failing is the scikit-learn and when i check the installed packages it still says scikit is installed as version 1.2.2 and scipy is version 1.11.0

gitmylo commented 1 year ago

That's really odd. I couldn't find anything on the internet about that bug though. Sorry.

nmeftah commented 1 year ago

strange, guess ill try it on another machine and see what happens

nmeftah commented 1 year ago

and one last question, how would i run the install from linux?

gitmylo commented 1 year ago

Wherever you'd normally do something with .bat, you now use the .sh variants