Coder Social home page Coder Social logo

[BUG REPORT] about audio-webui HOT 77 CLOSED

gitmylo avatar gitmylo commented on May 24, 2024
[BUG REPORT]

from audio-webui.

Comments (77)

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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?

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

ok got it thank you!

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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'"

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

fairly positive, i uninstalled 3.11 before installing 3.10

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

says its running 3.10.11

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024
Screenshot 2023-06-26 132432

heres the screenshot

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

sounds good, ill let ya get some rest now lol

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024
Screenshot 2023-06-27 162250

heres the full error message when running pip to install TTS

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

Yeah, you need visual studio build tools.

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024
Screenshot 2023-06-27 170224

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

any idea how to fix this error?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

so the dependency error i shouldnt worry about?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024
Screenshot 2023-06-27 171920

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

alright, let me see how that goes

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

yes i did

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

What was the error in the console during install now?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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)

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

almost certain i did

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

is there any way to check?

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

let me give that a try

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

says they are both already satisfied

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

sounds good, thank you

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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.

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

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

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

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

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

thats what i figured but when i try to launch the .sh variants i get a message saying command not found

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

do you have python 3.10 installed?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

yeah its 3.10.6

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

what happens when you try to run python3.10 as a command?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

it launches python

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

I have changed the check to use "which", can you git pull the changes and check if it works now?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

still nothing

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

nothing? can you show the output?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

Screenshot from 2023-06-27 12-09-07

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

oh, that.

In linux bash, to run a script. you start with "./". So in this case, the correct command is "./install.sh"

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

ahhh ok, sorry, i haven't used linux too much before

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

so now when i run it i get a message saying permission denied

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

try sudo ./[file].
if that fails, try chmod +rwx [file], and then running the file again

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

works now but now theres this error
Screenshot from 2023-06-27 12-16-04

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

delete the venv folder, windows venvs are structured differently from linux venvs.

windows venv's activate: venv\Scripts\activate.bat
linux/macos venv's activate: venv/bin/activate

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

ok got it, working now

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

so when i run the run file it worked perfectly until this point
Screenshot from 2023-06-27 12-32-10

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

now its just stuck at that point

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

yeah, just open the link in your browser (http://127.0.0.1:7860)

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

ah ok i see

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

linux worked perfectly, im now trying to get it to run on macos but im getting a message saying i need visual build tools for c++ but if i recall correctly that not compatible on mac

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

that's weird, pretty sure on macos you'd need a compiler like gcc

https://stackoverflow.com/questions/59977457/installing-gcc-on-macos-catalina

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

let me give that a shot

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

so after installing the gcc I still get an error saying theres no module named TTS

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

did you check if it installed correctly this time?

from audio-webui.

nmeftah avatar nmeftah commented on May 24, 2024

when i look through the install no errors come up but hwne i check the package list in the venv theres nothing about TTS so when i tried to manually install that i get an error saying no such file or directory: 'mecab-config'

from audio-webui.

gitmylo avatar gitmylo commented on May 24, 2024

pip install mecab might help. Not really sure though.

from audio-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.