Странности с питоном

Ответить
Сквозняк
Сообщения: 111
Зарегистрирован: 25 сен 2023, 22:57
Operating system: Роса, Федора, Бубунта, Дос, Маздайка

Странности с питоном

Сообщение Сквозняк »

Пытаюсь установить stable-diffusion-webui, нейросеть сообщает что установка глючит

Код: Выделить всё

./webui.sh 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on buratino user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.33
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is not linked with libpthread will trigger undefined symbol: pthread_Key_create error
Check TCMalloc: libtcmalloc.so.4
libtcmalloc.so.4 is linked with libpthread,execute LD_PRELOAD=/usr/lib64/libtcmalloc.so.4
Python 3.8.13 (default, Jul 14 2025, 13:31:28) 
[GCC 11.4.0 20230528 (ROSA)]
Version: v1.10.1-96-g1937682a
Commit hash: 1937682a20f7f0442311a1ede68f9f0cb480163b
Installing requirements
Traceback (most recent call last):
  File "launch.py", line 53, in <module>
    main()
  File "launch.py", line 44, in main
    prepare_environment()
  File "/mnt/kabacok3/1/2/nnn/1/stable-diffusion-webui/modules/launch_utils.py", line 471, in prepare_environment
    run_pip(f"install -r \"{requirements_file}\"", "requirements")
  File "/mnt/kabacok3/1/2/nnn/1/stable-diffusion-webui/modules/launch_utils.py", line 142, in run_pip
    return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
  File "/mnt/kabacok3/1/2/nnn/1/stable-diffusion-webui/modules/launch_utils.py", line 114, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements.
Command: "/mnt/kabacok3/1/2/nnn/1/stable-diffusion-webui/venv/bin/python" -m pip install -r "requirements_versions.txt" --prefer-binary
Error code: 1
stdout: Collecting setuptools==69.5.1 (from -r requirements_versions.txt (line 1))
  Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
Collecting GitPython==3.1.32 (from -r requirements_versions.txt (line 2))
  Using cached GitPython-3.1.32-py3-none-any.whl.metadata (10.0 kB)
Collecting Pillow==9.5.0 (from -r requirements_versions.txt (line 3))
  Using cached Pillow-9.5.0-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (9.5 kB)
Collecting accelerate==0.21.0 (from -r requirements_versions.txt (line 4))
  Using cached accelerate-0.21.0-py3-none-any.whl.metadata (17 kB)
Collecting blendmodes==2022 (from -r requirements_versions.txt (line 5))
  Using cached blendmodes-2022-py3-none-any.whl.metadata (12 kB)
Collecting clean-fid==0.1.35 (from -r requirements_versions.txt (line 6))
  Using cached clean_fid-0.1.35-py3-none-any.whl.metadata (36 kB)
Collecting diskcache==5.6.3 (from -r requirements_versions.txt (line 7))
  Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Collecting einops==0.4.1 (from -r requirements_versions.txt (line 8))
  Using cached einops-0.4.1-py3-none-any.whl.metadata (10 kB)
Collecting facexlib==0.3.0 (from -r requirements_versions.txt (line 9))
  Using cached facexlib-0.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting fastapi==0.94.0 (from -r requirements_versions.txt (line 10))
  Using cached fastapi-0.94.0-py3-none-any.whl.metadata (25 kB)
Collecting gradio==3.41.2 (from -r requirements_versions.txt (line 11))
  Using cached gradio-3.41.2-py3-none-any.whl.metadata (17 kB)
Collecting httpcore==0.15 (from -r requirements_versions.txt (line 12))
  Using cached httpcore-0.15.0-py3-none-any.whl.metadata (15 kB)
Collecting inflection==0.5.1 (from -r requirements_versions.txt (line 13))
  Using cached inflection-0.5.1-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting jsonmerge==1.8.0 (from -r requirements_versions.txt (line 14))
  Using cached jsonmerge-1.8.0.tar.gz (26 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting kornia==0.6.7 (from -r requirements_versions.txt (line 15))
  Using cached kornia-0.6.7-py2.py3-none-any.whl.metadata (12 kB)
Collecting lark==1.1.2 (from -r requirements_versions.txt (line 16))
  Using cached lark-1.1.2-py2.py3-none-any.whl.metadata (1.7 kB)

stderr: ERROR: Could not find a version that satisfies the requirement numpy==1.26.2 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4)
ERROR: No matching distribution found for numpy==1.26.2
из-за версии питона - 3.8 там уже не подерживается, надо 3.9, ставлю новую версию

Код: Выделить всё

dnf in python3.12-*
Ошибка остаётся. Проверяю версию питона, а там:

Код: Выделить всё

$ python3 --version
Python 3.8.13
va9(2)
Сообщения: 1037
Зарегистрирован: 20 окт 2015, 08:06
Operating system: RF.KDE5.2023.1.x86_64

Re: Странности с питоном

Сообщение va9(2) »

Это не меняет системный python. Попробуйте через venv.

Код: Выделить всё

$ python3.12 -m venv venv
$ source venv/bin/activate
$ ./webui.sh
$ - команда должна быть выполнена от имени непривилегированного пользователя,
# - команда должна быть выполнена от имени суперпользователя.
Сквозняк
Сообщения: 111
Зарегистрирован: 25 сен 2023, 22:57
Operating system: Роса, Федора, Бубунта, Дос, Маздайка

Re: Странности с питоном

Сообщение Сквозняк »

Вроде питон нужной версии работает. Но запустилось что-то не то. У меня X11, а не вайланд, а тут попытка работы через вайланд валится:

Код: Выделить всё

buratino@rosa-ka1byt /mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge (main) $ python3.10 -m venv venv && source venv/bin/activate && ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on buratino user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
python venv already activate or run without venv: /mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.33
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is not linked with libpthread will trigger undefined symbol: pthread_Key_create error
Check TCMalloc: libtcmalloc.so.4
libtcmalloc.so.4 is linked with libpthread,execute LD_PRELOAD=/usr/lib64/libtcmalloc.so.4
Python 3.10.14 (main, Jun 26 2026, 23:22:29) [GCC 11.4.0 20230528 (ROSA)]
Version: f2.0.1v1.10.1-previous-669-gdfdcbab6
Commit hash: dfdcbab685e57677014f05a3309b48cc87383167
Legacy Preprocessor init warning: Unable to install insightface automatically. Please try run `pip install insightface` manually.
Launching Web UI with arguments: 
/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/torch/cuda/__init__.py:209: UserWarning: 
NVIDIA GeForce RTX 5060 Ti with CUDA capability sm_120 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_50 sm_60 sm_70 sm_75 sm_80 sm_86 sm_90.
If you want to use the NVIDIA GeForce RTX 5060 Ti GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

  warnings.warn(
Total VRAM 15886 MB, total RAM 95391 MB
pytorch version: 2.3.1+cu121
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : native
Hint: your device supports --cuda-malloc for potential speed improvements.
VAE dtype preferences: [torch.bfloat16, torch.float32] -> torch.bfloat16
CUDA Using Stream: False
Using pytorch cross attention
Using pytorch attention for VAE
ControlNet preprocessor location: /mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/models/ControlNetPreprocessor
*** Error loading script: soft_inpainting.py
    Traceback (most recent call last):
      File "/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py", line 10, in <module>
        from joblib import Parallel, delayed, cpu_count
    ModuleNotFoundError: No module named 'joblib'

---
2026-06-27 18:10:51,509 - ControlNet - INFO - ControlNet UI callback registered.
Model selected: {'checkpoint_info': {'filename': '/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/models/Stable-diffusion/v1-5-pruned.ckpt', 'hash': 'a9263745'}, 'additional_modules': [], 'unet_storage_dtype': None}
Using online LoRAs in FP16: False
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
QObject::moveToThread: Current thread (0x319d80f0) is not the object's thread (0x319d82c0).
Cannot move to target thread (0x319d80f0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open: строка 686: 27752 Аварийный останов         (стек памяти сброшен на диск) "kde-open${KDE_SESSION_VERSION}" "$1"
Startup time: 7.8s (prepare environment: 1.2s, launcher: 0.2s, import torch: 3.0s, other imports: 0.2s, load scripts: 0.9s, create ui: 1.2s, gradio launch: 0.9s).
QObject::moveToThread: Current thread (0x74f20f0) is not the object's thread (0x74f22c0).
Cannot move to target thread (0x74f20f0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/mnt/kabacok3/1/2/nnn/3/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open: строка 686: 27762 Аварийный останов         (стек памяти сброшен на диск) "kde-open${KDE_SESSION_VERSION}" "$1"

Сервер вроде как с той ошибкой запускается, но при попытке сгенерировать изображение, выдаёт ошибку куды.
Ответить

Вернуться в «Обсуждение ROSA Fresh R12 (платформа 2021.1)»