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

Failed to load PyTorch C extensions #53

Open
BigbUg001 opened this issue Feb 21, 2024 · 2 comments
Open

Failed to load PyTorch C extensions #53

BigbUg001 opened this issue Feb 21, 2024 · 2 comments

Comments

@BigbUg001
Copy link

BigbUg001 commented Feb 21, 2024

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
Copy link

H1nkik commented Mar 1, 2024

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
Copy link

jesanli commented Mar 2, 2024

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

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

3 participants