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

[Bug]: ERROR: Could not find a version that satisfies the requirement torch==2.3.1 (from versions: 2.6.0) #16847

Open
4 of 6 tasks
lukecp5 opened this issue Feb 16, 2025 · 1 comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance

Comments

@lukecp5
Copy link

lukecp5 commented Feb 16, 2025

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

While trying to get webui working on my AMD Ryzen 9 7950x, I kept running into the same error everytime I tried to run the webui-user.bat that the install guide had as one of the steps. I saw the part that said

If it looks like it is stuck when installing or running, press enter in the terminal and it should continue.

In my head though, it would be more of a frozen terminal which we've all seen plenty of times. Instead it filled the window with errors complaining about not being able to install torch. I tried everything to get the right version of torch installed, even tried 3 different python versions. Right as I was about to give up, I accidentally mistyped while the webui-user.bat window was focused, and it sprang back to life.

I understand if this bug is hard to track down or something, I'm a dev myself, but the wording on the installation guide needs to be more descriptive/clear. At least put something mentioning that it "freezing" is actually it acting like it failed with errors.

Image

Steps to reproduce the problem

  1. Install Python 3.10.6
  2. Clone the repo: git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml && cd stable-diffusion-webui-directml && git submodule init && git submodule update
  3. Run webui-user.bat
  4. Assume installation has failed, because it indicated so

What should have happened?

It should've just continued on with the installation process, after it provided the warnings and errors as opposed to just sitting there waiting on input.

What browsers do you use to access the UI ?

Other

Sysinfo

sys.txt

Console logs

webui-user.bat

Additional information

No response

@lukecp5 lukecp5 added the bug-report Report of a bug, yet to be confirmed label Feb 16, 2025
@w-e-w
Copy link
Collaborator

w-e-w commented Feb 16, 2025

well you may have installed python 3.10
but because your also have python 3.13.1 installed and have it set as default
it will use the default unless told otherwise

to fix this you should

  1. delete venv dir (in your webui root)
  2. then edit webui-user.bat -> set PYTHON=<path to your python 3.10 exe>
  3. run again

alternatively you could use method 1 see wiki it comes with python instide, which means it doesn't care about whether or not you have install python on your system
this does not apply to you because you're on a AMD card
I don't know whether or not if the AMD fork has a standalone package similar to us


looks like your have a AMD Radeon RX 7800 XT
and your are using https://github.com/lshqqytiger/stable-diffusion-webui-directml
so if it still doesn't work after following the above instructions, you should report your issues to the fork

I believe they have different installation instructions


okay I'm not entire show what's going on with your installation logs now
the first section which they error happens is on python 3.13
but it is Then followed by exception that I'm not sure has succeed or not using python 3.10

with an error of it's not recognized as a internal or external command

I'm going to take a guess did you edit webui-user.bat while webui-user.bat is being executed

don't quote me on this but if I understand things correct
windows batch script is is is read from storage line by line during runtime
which means if you edit the file while the file is being used some strange behaviors can occur

different from most other languages that I'm aware of that reads the entire script into memory on load

this may be the cause of

it sprang back to life.

you can try this if you want, save this as a .bat and run it, edit the file well it is being used

echo 1 edit the line echo 2 and echo 3 and save, then press any key to continue
pause
echo 2 edit me while paused
pause
echo 3 edit me while paused
pause

@w-e-w w-e-w added asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance and removed bug-report Report of a bug, yet to be confirmed labels Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance
Projects
None yet
Development

No branches or pull requests

2 participants