[Bug]: exit code 9009 error
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
tried executing the file "webui-user.bat" as instructed on a guide for cloning and using this... on my first machine, a slow intel based laptop(upgraded to win11), it works fine, and does the installing torch thing, although thats as far as ive gotten before trying this on my more beefy desktop rig running an AMD 3900x processor and an AMD Radeon 5700xt with 8GB VRAM... when i install python 3.10 and git(same installers copied from laptop) then copy over the git clone command and clone this git, it seems to work...
all that said, the issue is that my expensive machine (with python installed) running Win10, has problems loading "webui-user,bat" and spits out an error(have tried running without @ECHO OFF to try and isolate the issue as well as without "--medvram" parameter) as shown in below picture(with @ECHO ON) (also note python was installed with PATH option turned on in both machines, otherwise everything is installed at default options)

what's stupid is, i didn't get redirected to the windows store in windows 11 upon running python, but it appears i might be in windows 10 for some reason? if it's found to not be an issue specifically with your code but with python, as it appears is the case, can you provide a workaround in future for those who don't use the windows store version of python(and don't wish to with a passion)?
Steps to reproduce the problem
1: install GIT and python 3.10 2: clone git to local folder(with no spaces in name) 3: run webui-user.bat 4: get error on win10 machine where win11 machine doesnt get error
5: i have confirmed that for whatever reason opening cmd and typing "python" on my win11 install brings up the python console, whereas in win10 if you do the same command on my win10 system it forces me to the windows store page
What should have happened?
should have went to the first run torch install, whatever torch is or does
Commit where the problem happens
b5050ad2071644f7b4c99660dc66a8a95136102f
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
No response
Command Line Arguments
No response
Additional information, context and logs
might want to address the issue of python requiring to install the windows store version when you just installed it from the installer, as i've seen plenty of reviews from those who prefer the non-store version for whatever reason
Normal solution: set PYTHON var(not set PATH) in webui-user
extreme solution: I never use the windows store myself. when I help others to solve this problem,
I found the path of the fake python that is preset in windows is in the user environment variable, which takes precedence over the normal python in the system environment variable, completely blocks plain python
I will use some file delete tool, delete the fake python, then normal python will work.
The problem is, I downloaded the installer from the python website, and although I got it to work by installing it from the MS Store, if it's NOT installed from the store, and I type "python" into a cmd prompt on windows 10, it automatically opens up the MS Store page for python... It doesn't do it on windows 11, only windows 10, and yes, I checked, it's definitely not the MS Store version I'm running on that win11 machine, as it's confirmed to not be installed... The solution they give to use your own copy is to "manage app execution aliases" but with no instructions on how or what the entries should look like(that somehow I don't have unless it's installed from the store)
Another thing... I installed torchvision and it's dependencies from the command line so I could watch it's install process (into my system python install?) and yet on opening the batch file it says it's installing torch and torchvision(definitely need an option to NOT have those installs silent if possible, or to notice if you already have the files installed on your system and use them or copy them wherever they need to go to work...
Edit Sorry if I sound like a N00B, it's because I AM a MAJOR N00B where python is concerned, and only use it if I'm forced to...
-
The normal use of webui does not require manual pip installation.
-
webui uses a virtual environment by default, so it is useless for you to install components in the system python, You must know how to enter the same virtual environment to install manually
-
I don't think it is necessary to study the windows store, search and delete python.exe of windows fake python, everything will be fine.
Well, thanks for your help anyways guys... Hopefully I can get it eventually figured out. Of course, now I gotta figure out what "fake python" is, as I have no idea which executables to delete as there's like 3 or 4 different executables, and I don't even know if the store version or the installer version is considered the "fake", although I'm guessing it's the store version... Then I gotta figure out how to get torch installed, as I'm on a relatively slow hotspot connection, so it just sits there for hours on the "installing torchvision" messages, which is another thing preventing me from checking this out... Was really looking forward to trying this webui out but I keep hitting things that stop me in my tracks or slow me down almost to a standstill making me wonder if it's my connection or the app/code causing the issue, which is where script download indicators would come in handy... I mean, seriously, I downloaded the stuff within a half hour from command line, yet if it's initiated from the batch file, it just sits there for what is now over an hour, with hardly any sign that it's doing anything or isn't frozen, besides the flashing cursor
Im also stuck on installing torch, did pretty much the same as you here
just encounted this problem and figured it out, just reinstall python310, when you install it again click "add python.exe to path" option right at the begining.
Hi - when you reinstalled python310 did you need to uninstall everything else and start from scratch too? Or was uninstalling and reinstalling python310 sufficient? Like OP I am an uber noob who only uses this when I have to. Many thanks!
I fixed this by turning off everything in Windows Settings -> App execution aliases