Replies: 3 comments
-
I installed Don't mess with |
Beta Was this translation helpful? Give feedback.
-
On Fri, May 24, 2024, 13:09 fcolecumberri ***@***.***> wrote:
I installed python310 and python310-pip from AUR (it should not mess
anything with your system) and then inside stable-diffusion-webui directory python3.10
-m virtualenv venv, so before starting webui, I just source
./venv/bin/activate.
There's nothing in the aur called python310-pip that I could find.
And so I suppose virtualenv only gets installed to system python (3.12)
because even after explicitly installing virtualenv I get the error "no
module named virtualenv" when I try to use the "python3.10 -m virtualenv"
command.
No clue how to install virtualenv to 3.10. pacam shows no special versions.
Only system wide. Pip is blocked on command line with a warning, says the
install python modules via the arch/Manjaro channels.
Don't mess with python_cmd glibc by yourself, virtualenv already mange
that.
—
ok, something is happening now. I trashed the automatically created venv, then ran this inside the stable-diffusion-webui folder.
[code]python3.10 -m venv /venv[/code]
in other words, it seems like 'virtualenv' isn't the command, it's just venv.
big thanks for the reponse, it did help me go in the right direction. we'll see if this time it works. at least its downloading torch (which i've downloaded probably 100 times by now through various programs, wish they'd just share the thing.)
|
Beta Was this translation helpful? Give feedback.
-
Thank you all for all the hints, for me it's working now... I installed python310 via the AUR and then, in the webui-user.sh, I set the python executable parameter:
Now everything is working again! |
Beta Was this translation helpful? Give feedback.
-
I've tried renaming the old folder containing a1111 and re launching the installer and it exits before I can read the terminal, and after adding the right flags to the script I am able to see the following error
"INCOMPATIBLE PYTHON VERSION
This program is tested with 3.10.6 Python, but you have 3.12.3.
...
"
ok, understandable. fine. not sure why the correct version of python can't be automatically put in the venv, like Blender or any other program does. probably for reasons.
so I found an app called pyenv and that let me 'install' 3.10.6 to my system and I could set it as my global python version but i don't want to do that just for a1111.
in webui-user.sh, I've written the following: (uncommented of course)
python_cmd="/home/username/.pyenv/versions/3.10.6/bin/python3.10"
this should tell a1111 where the correct executable for python is, but as I've stated in another topic, A1111 is currently ignoring webui-user.sh completely. for example, --skip-install isn't working either, no commands in webui-user.sh are being looked at since the recent update a few weeks ago.
stopped using pyenv, went to miniconda3. got past the initial python error by starting webui.sh by command line in an activated venv.
now the error is "GLIBCXX_3.4.30" not found. This problem is all over the internet. Installed every imaginable gcc related package i could find at anaconda and conda-forge, but this exact library isn't being found. I'm told i could symlink it from the env to my system /lib directory, but finding it isn't happening. The command:
pacman -Qo /lib/libstdc++.so.6
returns:
/usr/lib/libstdc++.so.6 is owned by gcc-libs 13.2.1-6
so that means i think that the file exists, but inconveniently the error message given by a1111 truncates the location it's trying to find the file in, in this way:
#/envs/py310/bin/../lib/
i wish that wasn't truncated, so I could try to put the symlink where it needs to be, since there's no directory anywhere beneath /bin/ in that env.
python3: /home/username/miniconda3/envs/py310/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libtcmalloc_minimal.so.4)
Beta Was this translation helpful? Give feedback.
All reactions