lexkoro / GameTTS

141 stars 19 forks source link

requirements.txt #2

Closed prussiablade closed 2 years ago

prussiablade commented 3 years ago

Hi, what`s the problem here? Installation went through except for the following note. Thanks for help.

python : WARNING: You are using pip version 21.2.4; however, version 21.3 is available. At C:\GameTTS\install.ps1:21 char:5

You should consider upgrading via the 'C:\GameTTS.venv\Scripts\python.exe -m pip install --upgrade pip' command.

lexkoro commented 3 years ago

There should be no problem, just a warning.

PIP (package manager of python) is just telling you that there is a newer version available.

But it shouldn't affect the usage of the application, were you able to run it?

prussiablade commented 3 years ago

If i update pip version, following message is shown:

PermissionError: [Errno 13] Permission denied: 'C:\GameTTS\.venv\Scripts\python.exe' Zugriff verweigert At C:\GameTTS\install.ps1:21 char:5

Application shows:

PS C:\GameTTS> C:\GameTTS\run.ps1 python : Traceback (most recent call last): At C:\GameTTS\run.ps1:8 char:5

prussiablade commented 3 years ago

If I reinstall Python 3.8.9 the application start, but ends after following command:

PS C:\GameTTS> C:\GameTTS\run.ps1 INFO:root:Loaded checkpoint 'C:\GameTTS\vits\model\G_600000.pth'

lexkoro commented 3 years ago

Yeah I made some changes today, might have been in a broken state.

I've tried making it more accessible by wrapping the PowerShell scripts into an exe.

Would you mind giving it a try? https://github.com/lexkoro/GameTTS/releases/tag/v0.0.1

prussiablade commented 3 years ago

Tried it. Wont work for me.

Installing... might take a while. .\GameTTS.exe : File C:\GameTTS-0.0.1\bin\install.ps1 cannot be loaded. The file At line:1 char:1

C:\GameTTS-0.0.1\bin\install.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.

lexkoro commented 3 years ago

Can you try running as Administrator? Otherwise I will try to get rid of PowerShell....

I think if you allow remote-signed scripts it will run. Set-ExecutionPolicy RemoteSigned

prussiablade commented 3 years ago

I always install and run as administrator.

ExecutionPolicy is set to "bypass".

Maybe the problems result in using Windows 7?

prussiablade commented 3 years ago

Ich schreib mal deutsch... mittlerweile konnte ich die Installation zum laufen bekommen, dazu musste der Schreibschutz des gesamten GameTTS-Ordners aufgehoben werden und zusätzlich an den Dateien "install.ps1", "run.ps1" und "GameTTS.exe" per Rechtsklick: Eigenschaften/Sicherheit auf zulassen geklickt werden.

image

So lief die Installation per .exe dann erstmalig ohne Fehlermeldung durch... leider startet die Anwendung trotzdem nicht:

PS C:\GameTTS\bin> C:\GameTTS\bin\run.ps1 python : C:\Program Files\Python38\python.exe: can't open file '.\main.py': [Errno 2] No such file or directory At C:\GameTTS\bin\run.ps1:8 char:5

mindactuate commented 3 years ago

Hi! At first, thank you so much for this amazing work!

I invested like 10 hours with trying to get the repo from Danber running. But unfortunately it didn't work because the reference "TTS" wasn't found inside Docker. Then I tried to use the model, which can be found at the repo from Danber, with Coqui TTS. But that did neither work because Coqui TTS could'nt handle the Multi-Speaker feature of the model (Coqui wasn't able to extract the different speakers "found 0 speakers"). And now I finally found your repo and your work. :)

Back to business:

The .exe does neither work for me. I tried to run it as admin. Then I tried to start the install.ps1 first via PowerShell.

I've found out the following:

PowerShell has its problems with executing "unfamiliar" scripts.

Therefore I started PowerShell as Admin and run the command

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine

You'll find info about that here.

Please be aware, that those execution policies have their place. It should not be that a bypass has to be "installed".

The next step is to move both scripts (run and install) from the /bin folder to /. Now you can start the install.ps1 first and run.ps1 next. The main.py will also download the model.

prussiablade commented 3 years ago

Hi, ich noch mal. Du solltest in die Beschreibung der Installation reinnehmen, dass "Chrome" installiert sein muss und als Standardbrowser eingestellt ist. Wenn dann zusätzlich keine Firewall mehr im Weg ist, läuft das Programm auch :dancing_men:

Bestehen Pläne das Tool auch auf anderen Browsern kompatibel zu machen?

Ansonsten sehr feines Programm das ungeahnte Möglichkeiten verschafft :)

lexkoro commented 3 years ago

Hi, an sich sollte es dann ein Fallback auf den Edge Browser geben, wenn Chrome nicht installiert ist.

Ich habe jetzt eine neue Version gepusht, der ganze Installationsprozess sollte jetzt deutlich einfacher ablaufen. :) Gerne mal testen!

lexkoro commented 3 years ago

Therefore I started PowerShell as Admin and run the command

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine

You'll find info about that here.

Yes, that is what I initially planned to do. But now I removed PowerShell completely and the installation process should be way easier and less prone to errors. :P

mindactuate commented 3 years ago

Great! I’ll test the new installation process tonight. Do you need help with something? It’s a great project and I’d be happy to help. :)

mindactuate commented 3 years ago

0.0.2 works great! 👍