5PQR / TextAudioTool

python tool that creates local api endpoints for TTS & STT
GNU Affero General Public License v3.0
10 stars 5 forks source link

Please tell me how to solve this problem? #2

Open ak4710315 opened 5 months ago

ak4710315 commented 5 months ago

2024-05-08 22 29 36

Musa-step commented 2 months ago

536 Got similar problem. After reinstalling the pyttsx3 components I got another error: OSError: [WinError 126] fbgemm.dll It seems these problems appeared after recent updates of PyTouch. I'm currently using my old pre-installed TextAudioTool assembly. Hope the developers of the python libraries will fix the problems in the future.

5PQR commented 2 months ago

There's nothing to reinstall manually, this is click and run. If you get errors then you're missing some things. I can't help you much with what those things might be, there's a lot of stuff going on like https://github.com/pytorch/pytorch/issues/131662 . Things related to windows11, I'm on win10 so can't test it

Also based on your folder, you're running v0.2 which is old, you should run v0.4.

Please try redownloading the latest version in a folder. DON'T execute it yet. Edit in notepad "SPQR.TextAudioTool.bat" and replace this line: set MINICONDA_DOWNLOAD_URL=https://repo.anaconda.com/miniconda/Miniconda3-py310_23.1.0-1-Windows-x86_64.exe with this: set MINICONDA_DOWNLOAD_URL=https://repo.anaconda.com/miniconda/Miniconda3-py39_24.5.0-0-Windows-x86_64.exe

and then run the tool. Please let me know if that works. It should use an older version of python and circumvent that dll problem as per the discussion on that issue. Somebody else on patreon reported the dll issue and he fixed it by downloading that dll from a site and putting it somewhere in the folder, probably installer_files\env. Some people on that python issue thread did something similar. I personally wouldn't do that, I wouldn't trust random dll sites. But that could be an option too if you find that dll from a source that looks trustworthy

Musa-step commented 2 months ago

@5PQR Thank you for replying. I did as you told using the v0.4. Unfortunately, I got the "ModuleNotFoundError: No module named 'pyttsx3'" error. Maybe it is just problem of my Windiws10 Pro. But I still use my old assembly of v0.2 that I installed February 2024, and it works fine. h1 h2

P.S. If I copy the directory "installer_files" from my old assembly/build then v04 also works without errors. Will try to figure out exactly which file creates this problem if installing from scratch.

5PQR commented 3 weeks ago

sorry, i don't login here on github often, thought it was solved

did you get it to work eventually?

in the screenshot you didn't follow the instruction: "Please try redownloading the latest version in a folder. DON'T execute it yet. Edit in notepad "SPQR.TextAudioTool.bat" and replace..."

it needs to be the first time you run that bat in that folder (to not have an installer_data folder created in it)

in the screenshot the command prompt suggests that you already had the tool installed in that folder, so your notepad change was irrelevant. That change controls the version of python it installs the first time the tool runs. If you still have problems, please try redownloading in a new folder, change that line, and then and only then run the tool (after you made that change). Maybe that will work.