From 0d38c8ae8fc52620a1ae5b8b334a038ca5745d28 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Tue, 25 Oct 2022 16:38:08 +0530 Subject: [PATCH] Bring back the post-installation test for torch --- scripts/on_sd_start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/on_sd_start.sh b/scripts/on_sd_start.sh index 100d2c03..ca8e698f 100755 --- a/scripts/on_sd_start.sh +++ b/scripts/on_sd_start.sh @@ -80,12 +80,12 @@ else exit fi - # out_test=`python -c "import torch; import ldm; import transformers; import numpy; import antlr4; print(42)"` - # if [ "$out_test" != "42" ]; then - # printf "\n\nDependency test failed! Error installing the packages necessary for Stable Diffusion. Sorry about that, please try to:\n 1. Run this installer again.\n 2. If that doesn't fix it, please try the common troubleshooting steps at https://github.com/cmdr2/stable-diffusion-ui/wiki/Troubleshooting\n 3. If those steps don't help, please copy *all* the error messages in this window, and ask the community at https://discord.com/invite/u9yhsFmEkB\n 4. If that doesn't solve the problem, please file an issue at https://github.com/cmdr2/stable-diffusion-ui/issues\nThanks!\n\n" - # read -p "Press any key to continue" - # exit - # fi + out_test=`python -c "import torch; import ldm; import transformers; import numpy; import antlr4; print(42)"` + if [ "$out_test" != "42" ]; then + printf "\n\nDependency test failed! Error installing the packages necessary for Stable Diffusion. Sorry about that, please try to:\n 1. Run this installer again.\n 2. If that doesn't fix it, please try the common troubleshooting steps at https://github.com/cmdr2/stable-diffusion-ui/wiki/Troubleshooting\n 3. If those steps don't help, please copy *all* the error messages in this window, and ask the community at https://discord.com/invite/u9yhsFmEkB\n 4. If that doesn't solve the problem, please file an issue at https://github.com/cmdr2/stable-diffusion-ui/issues\nThanks!\n\n" + read -p "Press any key to continue" + exit + fi echo conda_sd_env_created >> ../scripts/install_status.txt fi