doombatz opened issue ecker/ai-voice-cloning#40

doombatz
Sun, 26 Feb 2023 09:08:47 +0000

40#Could not find module torchaudio\lib\libtorchaudio.pyd#

OS:windows 10,
GPU:RTX 3080,
python: Python 3.10.8

i just cloned the repo, ran setup-cuda.bat and update.bat and start.bat and got the following error:

(venv) E:\ai_voice\ai-voice-cloning>call .\venv\Scripts\activate.bat
Traceback (most recent call last):
  File "E:\ai_voice\ai-voice-cloning\src\main.py", line 9, in <module>
    from utils import *
  File "E:\ai_voice\ai-voice-cloning\src\utils.py", line 24, in <module>
    import torchaudio
  File "E:\ai_voice\ai-voice-cloning\venv\lib\site-packages\torchaudio\__init__.py", line 1, in <module>
    from torchaudio import (  # noqa: F401
  File "E:\ai_voice\ai-voice-cloning\venv\lib\site-packages\torchaudio\_extension.py", line 135, in <module>
    _init_extension()
  File "E:\ai_voice\ai-voice-cloning\venv\lib\site-packages\torchaudio\_extension.py", line 105, in _init_extension
    _load_lib("libtorchaudio")
  File "E:\ai_voice\ai-voice-cloning\venv\lib\site-packages\torchaudio\_extension.py", line 52, in _load_lib
    torch.ops.load_library(path)
  File "E:\ai_voice\ai-voice-cloning\venv\lib\site-packages\torch\_ops.py", line 573, in load_library
    ctypes.CDLL(path)
  File "C:\Users\Doom\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'E:\ai_voice\ai-voice-cloning\venv\Lib\site-packages\torchaudio\lib\libtorchaudio.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

interestingly, the file E:\ai_voice\ai-voice-cloning\venv\Lib\site-packages\torchaudio\lib\libtorchaudio.pyd does exist

torchaudio seems installed

(venv) E:\ai_voice\ai-voice-cloning>pip install torchaudio
Requirement already satisfied: torchaudio in e:\ai_voice\ai-voice-cloning\venv\lib\site-packages (0.13.1+cu116)
Requirement already satisfied: torch==1.13.1 in e:\ai_voice\ai-voice-cloning\venv\lib\site-packages (from torchaudio) (1.13.1)
Requirement already satisfied: typing-extensions in e:\ai_voice\ai-voice-cloning\venv\lib\site-packages (from torch==1.13.1->torchaudio) (4.5.0)