daswer123 / xtts-webui

Webui for using XTTS and for finetuning it
MIT License
583 stars 113 forks source link

Failed to load PyTorch C extensions #53

Open BigbUg001 opened 7 months ago

BigbUg001 commented 7 months ago

I am getting this error when i start "start_xtts_webui.bat":

Traceback (most recent call last): File "C:\Users\jadso\xtts-webui\app.py", line 67, in from xtts_webui import demo File "C:\Users\jadso\xtts-webui\xtts_webui.py", line 3, in from scripts.tts_funcs import TTSWrapper File "C:\Users\jadso\xtts-webui\scripts\tts_funcs.py", line 3, in import torch File "C:\Users\jadso\xtts-webui\venv\lib\site-packages\torch__init__.py", line 451, in raise ImportError(textwrap.dedent(''' ImportError: Failed to load PyTorch C extensions: It appears that PyTorch has loaded the torch/_C folder of the PyTorch repository rather than the C extensions which are expected in the torch._C namespace. This can occur when using the install workflow. e.g. $ python setup.py install && python -c "import torch"

This error can generally be solved using the `develop` workflow
    $ python setup.py develop && python -c "import torch"  # This should succeed
or by running Python from a different directory.

i tried to reinstall PyTorch, Cuda, everything, but didnt work. What am i doing wrong?

H1nkik commented 7 months ago

I have the same question.

ImportError: Failed to load PyTorch C extensions: It appears that PyTorch has loaded the torch/_C folder of the PyTorch repository rather than the C extensions which are expected in the torch._C namespace. This can occur when using the install workflow. e.g. $ python setup.py install && python -c "import torch"

This error can generally be solved using the `develop` workflow
    $ python setup.py develop && python -c "import torch"  # This should succeed
or by running Python from a different directory.
jesanli commented 7 months ago

I have the same question.

ImportError: Failed to load PyTorch C extensions: It appears that PyTorch has loaded the torch/_C folder of the PyTorch repository rather than the C extensions which are expected in the torch._C namespace. This can occur when using the install workflow. e.g. $ python setup.py install && python -c "import torch"

This error can generally be solved using the `develop` workflow
    $ python setup.py develop && python -c "import torch"  # This should succeed
or by running Python from a different directory.

do you have solve this question? i meet it and want you help