Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when install #15

Open
tjw2469 opened this issue May 14, 2024 · 4 comments
Open

error when install #15

tjw2469 opened this issue May 14, 2024 · 4 comments

Comments

@tjw2469
Copy link

tjw2469 commented May 14, 2024

The following is the error code I got:

Collecting jamo
Using cached jamo-0.4.0.tar.gz (7.3 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Kai\AppData\Local\Temp\pip-install-al5q33xn\jamo_ff59e11714f544ec963a3d086b856b82\setup.py", line 11, in
long_description = f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 703: illegal multibyte sequence
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Any solution?

@tjw2469 tjw2469 changed the title metadata-generation-failed error when install May 14, 2024
@tjw2469
Copy link
Author

tjw2469 commented May 14, 2024

found the solution:
daswer123/xtts-webui#70

update:
Even though with the method from the link above I managed to lunch finetune webui successfully, but it gives me error when I attempt to finetune a model

Traceback (most recent call last):
File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\xtts_demo.py", line 246, in preprocess_dataset
train_meta, eval_meta, audio_total_size = format_audio_list(audio_path, whisper_model = whisper_model, target_language=language, out_path=out_path, gradio_progress=progress)
File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\utils\formatter.py", line 131, in format_audio_list
segments = list(segments)
File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\venv\lib\site-packages\faster_whisper\transcribe.py", line 1111, in restore_speech_timestamps
for segment in segments:
File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\venv\lib\site-packages\faster_whisper\transcribe.py", line 508, in generate_segments
encoder_output = self.encode(segment)
File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\venv\lib\site-packages\faster_whisper\transcribe.py", line 767, in encode
return self.model.encode(features, to_cpu=to_cpu)
RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

What do I do?

@SuperFurias
Copy link

SuperFurias commented May 14, 2024

The following is the error code I got:

Collecting jamo Using cached jamo-0.4.0.tar.gz (7.3 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\Kai\AppData\Local\Temp\pip-install-al5q33xn\jamo_ff59e11714f544ec963a3d086b856b82\setup.py", line 11, in long_description = f.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 703: illegal multibyte sequence [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Any solution?

just like the normal xtts-webui, the finetune webui one has the same problem too. i don't know why.
this fixed the problem for me:
run the install.bat file
wait for everything to be installed
see error
close the cmd
open a new cmd inside the folder
type "call venv\Scripts\activate"
type "pip install tts"
wait for everything to be installed, close cmd
then run again the install.bat file
no more setup.py errors. don't ask me why, because i don't know

@SuperFurias
Copy link

SuperFurias commented May 14, 2024

found the solution: daswer123/xtts-webui#70

update: Even though with the method from the link above I managed to lunch finetune webui successfully, but it gives me error when I attempt to finetune a model

Traceback (most recent call last): File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\xtts_demo.py", line 246, in preprocess_dataset train_meta, eval_meta, audio_total_size = format_audio_list(audio_path, whisper_model = whisper_model, target_language=language, out_path=out_path, gradio_progress=progress) File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\utils\formatter.py", line 131, in format_audio_list segments = list(segments) File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\venv\lib\site-packages\faster_whisper\transcribe.py", line 1111, in restore_speech_timestamps for segment in segments: File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\venv\lib\site-packages\faster_whisper\transcribe.py", line 508, in generate_segments encoder_output = self.encode(segment) File "C:\Users\XXX\Desktop\xtts-webui\xtts-finetune-webui\venv\lib\site-packages\faster_whisper\transcribe.py", line 767, in encode return self.model.encode(features, to_cpu=to_cpu) RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

What do I do?

fixed this issue too.
go inside folder xtts-finetune-webui\venv\Lib\site-packages\torch\lib
find files cublas64_11.dll and cublasLt64_11.dll
copy them inside same folder
rename them as cublas64_12.dll and cublasLt64_12.dll
so you will have 4 files
cublas64_11.dll
cublas64_12.dll
cublasLt64_11.dll
cublasLt64_12.dll
problem fixed

all thanks to comments inside SYSTRAN/faster-whisper#535

@tjw2469
Copy link
Author

tjw2469 commented May 15, 2024

The following is the error code I got:
Collecting jamo Using cached jamo-0.4.0.tar.gz (7.3 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\Kai\AppData\Local\Temp\pip-install-al5q33xn\jamo_ff59e11714f544ec963a3d086b856b82\setup.py", line 11, in long_description = f.read() UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 703: illegal multibyte sequence [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Any solution?

just like the normal xtts-webui, the finetune webui one has the same problem too. i don't know why. this fixed the problem for me: run the install.bat file wait for everything to be installed see error close the cmd open a new cmd inside the folder type "call venv\Scripts\activate" type "pip install tts" wait for everything to be installed, close cmd then run again the install.bat file no more setup.py errors. don't ask me why, because i don't know

Thank you, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants