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

updated today, getting this on start.bat now #249

Closed
danollo opened this issue Jan 13, 2024 · 3 comments
Closed

updated today, getting this on start.bat now #249

danollo opened this issue Jan 13, 2024 · 3 comments

Comments

@danollo
Copy link

danollo commented Jan 13, 2024

File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\tts-generation-webui\server.py", line 40, in
from src.tortoise.generation_tab_tortoise import generation_tab_tortoise
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\tts-generation-webui\src\tortoise\generation_tab_tortoise.py", line 7, in
from src.tortoise.gen_tortoise import (
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\tts-generation-webui\src\tortoise\gen_tortoise.py", line 7, in
from tortoise.api import TextToSpeech, MODELS_DIR
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\tortoise\api.py", line 10, in
import torchaudio
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torchaudio_init_.py", line 1, in
from torchaudio import ( # noqa: F401
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torchaudio_extension_init_.py", line 43, in
_load_lib("libtorchaudio")
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torchaudio_extension\utils.py", line 61, in load_lib
torch.ops.load_library(path)
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torch_ops.py", line 643, in load_library
ctypes.CDLL(path)
File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\ctypes_init
.py", line 374, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\Lib\site-packages\torchaudio\lib\libtorchaudio.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 13, 2024

So what has happened is that torch/torchaudio has reinstalled itself.
I have prevented it before from happening, so I am not certain what could have caused it; those dependencies haven't been modified recently.

The solution would be a) reinstall or b) reinstall just those two with cmd_windows.bat then

conda install -y -k pytorch[version=2,build=py3.10_cuda11.7*] torchvision torchaudio pytorch-cuda=11.7 cuda-toolkit ninja git -c pytorch -c nvidia/label/cuda-11.7.0 -c nvidia

if you use NVidia GPU

@danollo
Copy link
Author

danollo commented Jan 14, 2024

reinstall worked

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 14, 2024

Glad to hear that. I'm still not certain what causes torch to get mangled up, I think I will need an option/tool to fix torch.

@rsxdalv rsxdalv closed this as completed Jan 14, 2024
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