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

[Issue]: No module named 'torch' #3772

Open
2 tasks done
jabcreations opened this issue Feb 23, 2025 · 1 comment
Open
2 tasks done

[Issue]: No module named 'torch' #3772

jabcreations opened this issue Feb 23, 2025 · 1 comment
Labels
platform Platform specific problem question Further information is requested

Comments

@jabcreations
Copy link

Issue Description

I'm a developer but not a python / GIT / etc anything related to this project. Here is the output dump:

Creating VENV: D:\My Documents\Desktop\sdnext-master\venv
Using VENV: D:\My Documents\Desktop\sdnext-master\venv
00:12:01-802768 INFO     Starting SD.Next
00:12:01-806768 INFO     Logger: file="D:\My Documents\Desktop\sdnext-master\sdnext.log" level=INFO host="DESKTOP-MR95VT1" size=83 mode=append
00:12:01-809767 INFO     Python: version=3.10.6 platform=Windows bin="D:\My Documents\Desktop\sdnext-master\venv\Scripts\python.exe" venv="D:\My Documents\Desktop\sdnext-master\venv"
00:12:01-814767 WARNING  Not a git repository, all git operations are disabled
00:12:01-936415 INFO     Version: app=sd.next version=unknown branch=unknown ui=unknown
00:12:01-947416 INFO     Platform: arch=AMD64 cpu=AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD system=Windows release=Windows-10-10.0.19045-SP0 python=3.10.6 locale=('English_United States', '1252') docker=False
00:12:01-952416 INFO     Args: []
00:12:01-978415 INFO     ROCm: AMD toolkit detected
00:12:03-075462 INFO     ROCm: agents=['gfx1030']
00:12:03-077461 INFO     ROCm: version=6.1, using agent gfx1030
00:12:03-079461 INFO     Python: version=3.10.6 platform=Windows bin="D:\My Documents\Desktop\sdnext-master\venv\Scripts\python.exe" venv="D:\My Documents\Desktop\sdnext-master\venv"
00:12:06-185892 INFO     Using ZLUDA in D:\My Documents\Desktop\sdnext-master\.zluda
00:12:06-187888 INFO     Torch: download and install in progress... cmd="torch==2.6.0 torchvision --index-url https://download.pytorch.org/whl/cu118"
00:12:12-894540 ERROR    Install: pip: install --upgrade torch==2.6.0 torchvision --index-url https://download.pytorch.org/whl/cu118
00:12:12-908540 ERROR    Uncaught exception occurred: type=<class 'ModuleNotFoundError'> value=No module named 'torch'
00:12:12-912539 ERROR    '  File "D:\\My Documents\\Desktop\\sdnext-master\\launch.py", line 283, in <module>\n    main()\n'
00:12:12-914540 ERROR    '  File "D:\\My Documents\\Desktop\\sdnext-master\\launch.py", line 228, in main\n    installer.check_torch()\n'
00:12:12-916543 ERROR    '  File "D:\\My Documents\\Desktop\\sdnext-master\\installer.py", line 901, in check_torch\n    rocm.conceal()\n'
00:12:12-918543 ERROR    '  File "D:\\My Documents\\Desktop\\sdnext-master\\modules\\zluda_installer.py", line 133, in conceal\n    import torch # pylint: disable=unused-import\n'

AMD 3800 / 32GB / RX 6800 / Windows 10 x64 22H2

Hopefully this report helps someone. It never got past installation so I don't know how/if any other details are relevant.

Version Platform Description

No response

Relevant log output

Backend

Diffusers

UI

Standard

Branch

Master

Model

StableDiffusion 1.5

Acknowledgements

  • I have read the above and searched for existing issues
  • I confirm that this is classified correctly and its not an extension issue
@Disty0
Copy link
Collaborator

Disty0 commented Feb 23, 2025

00:12:12-894540 ERROR Install: pip: install --upgrade torch==2.6.0 torchvision --index-url https://download.pytorch.org/whl/cu118

You got an error on installing PyTorch. Can you try installing it manually within the venv?
Windows should have an activate.bat file in the venv folder, click on that and run:

pip install --upgrade torch==2.6.0 torchvision --index-url https://download.pytorch.org/whl/cu118

This should show why it errors out.

@vladmandic vladmandic added question Further information is requested platform Platform specific problem labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform Platform specific problem question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants