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]: linux安装requirements_versions.txt出现问题 #78

Open
1 of 5 tasks
dhlsam opened this issue Sep 18, 2024 · 0 comments
Open
1 of 5 tasks

[Bug]: linux安装requirements_versions.txt出现问题 #78

dhlsam opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dhlsam
Copy link

dhlsam commented Sep 18, 2024

Checklist

  • The issue has not been resolved by following the troubleshooting guide
  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Linux安装 在requirements_versions这部出错(https://github.com/metercai/SimpleSDXL/blob/SimpleSDXL/requirements_versions.txt)

Fooocus version: 2.5.5
Comfy version: 1dba801
SimpleSDXL version: v20240916.2952150
Install simpleai_base 0.3.19
Checking ...
[SimpleAI] GPU: NVIDIA RTX A4000, RAM: 63977MB, SWAP: 0MB, VRAM: 16376MB, DiskFree: 104039MB, CUDA: 12.6
[SimpleAI] local_did/本地身份ID: 4YJaNcoio5xbj3jndVxjqxsRBmfX
Installing torch and torchvision
Installing torchaudio
Version mismatch for numpy: Installed version 2.1.1 does not meet requirement 1.26.4
Installing requirements
Couldn't install requirements.
Command: "/config/other/SimpleSDXL/env/bin/python" -m pip install -r "requirements_versions.txt" --prefer-binary --index-url https://pypi.tuna.tsinghua.edu.cn/simple
Error code: 1

stderr: ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement onnx-graphsurgeon==0.3.27 (from versions: 0.0.1.dev4, 0.0.1.dev5, 0.5.2)
ERROR: No matching distribution found for onnx-graphsurgeon==0.3.27

Steps to reproduce the problem

用docker运行的脚本:
#!/bin/bash
source /functions.sh

export PATH="/home/abc/miniconda3/bin:$PATH"

设置变量和参数

自定义 WebUI 的名称(将用于程序本身和输出目录)

export CustomNAME="SimpleSDXL"

自定义 WebUI 的基础文件夹名称

export CustomBASE="other"

程序文件的完整路径

export CustomPATH="/config/$CustomBASE/$CustomNAME"

启动时传递的参数

export CustomPARAMETERS="--listen 0.0.0.0 --port 9000"

设置 Hugging Face 使用国内源

export HF_ENDPOINT=https://hf-mirror.com

设置 Hugging Face 缓存目录

将 Hugging Face 下载的模型存储在 ${CustomPATH}/HF 目录中,而不是默认的 ~/.cache/huggingface

export HF_HOME=${CustomPATH}/HF

创建文件夹(程序文件和输出文件夹)

mkdir -p ${CustomPATH}
mkdir -p $BASE_DIR/outputs/$CustomBASE/$CustomNAME

安装 pciutils

apt-get update
apt-get install -y pciutils

创建并激活 Conda 虚拟环境

if [ ! -d ${CustomPATH}/env ]; then
conda create -p ${CustomPATH}/env -y
fi

在 .bashrc 中添加环境激活命令

这将确保在每次打开终端时自动激活这个 Conda 环境

echo "source activate ${CustomPATH}/env" >> ~/.bashrc

激活 Conda 环境

source activate ${CustomPATH}/env

配置 Conda 使用清华大学镜像源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes

全局设置 pip 源(可选)

mkdir -p ~/.pip
echo "[global]" > ~/.pip/pip.conf
echo "index-url = https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.pip/pip.conf

安装所需的 Conda 包

conda install -n base conda-libmamba-solver -y
conda install -c conda-forge git python=3.10 pip --solver=libmamba -y
conda install -c nvidia cuda-cudart --solver=libmamba -y

克隆/更新程序文件

if [ ! -d ${CustomPATH}/SimpleSDXL ]; then
cd "${CustomPATH}" && git clone https://github.com/metercai/SimpleSDXL.git
fi
cd ${CustomPATH}/SimpleSDXL
git pull -X ours

使用 sl_folder 创建符号链接,以使用公共模型文件夹

sl_folder ${CustomPATH}/SimpleSDXL/models checkpoints ${BASE_DIR}/models stable-diffusion
sl_folder ${CustomPATH}/SimpleSDXL/models loras ${BASE_DIR}/models lora
sl_folder ${CustomPATH}/SimpleSDXL/models vae ${BASE_DIR}/models vae
sl_folder ${CustomPATH}/SimpleSDXL/models embeddings ${BASE_DIR}/models embeddings
sl_folder ${CustomPATH}/SimpleSDXL/models hypernetworks ${BASE_DIR}/models hypernetwork
sl_folder ${CustomPATH}/SimpleSDXL/models upscale_models ${BASE_DIR}/models upscale
sl_folder ${CustomPATH}/SimpleSDXL/models clip_vision ${BASE_DIR}/models clip_vision
sl_folder ${CustomPATH}/SimpleSDXL/models controlnet ${BASE_DIR}/models controlnet

sl_folder ${CustomPATH}/SimpleSDXL/models unet ${BASE_DIR}/models unet
sl_folder ${CustomPATH}/SimpleSDXL/models clip ${BASE_DIR}/models clip
sl_folder ${CustomPATH}/SimpleSDXL/models inpaint ${BASE_DIR}/models inpaint
sl_folder ${CustomPATH}/SimpleSDXL/models llms ${BASE_DIR}/models llms
sl_folder ${CustomPATH}/SimpleSDXL/models vae_approx ${BASE_DIR}/models vae_approx
sl_folder ${CustomPATH}/SimpleSDXL/models prompt_expansion ${BASE_DIR}/models prompt_expansion
sl_folder ${CustomPATH}/SimpleSDXL/models gligen ${BASE_DIR}/models gligen
sl_folder ${CustomPATH}/SimpleSDXL/models style_models ${BASE_DIR}/models style_models

sl_folder ${CustomPATH}/SimpleSDXL outputs ${BASE_DIR}/outputs/$CustomBASE $CustomNAME

安装所需的依赖

cd ${CustomPATH}/SimpleSDXL
pip install packaging pygit2==1.12.2

启动 SimpleSDXL

python entry_with_update.py ${CustomPARAMETERS}

What should have happened?

linux安装requirements_versions.txt出现问题

What browsers do you use to access Fooocus?

Google Chrome

Where are you running Fooocus?

Locally with virtualization (e.g. Docker)

What operating system are you using?

unraid

Console logs

Successfully installed torchaudio-2.3.1
SimpleSDXL: Already up-to-date, 2952150
[System ARGV] ['entry_with_update.py', '--listen', '0.0.0.0', '--port', '9000']
Python 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:45:18) [GCC 12.3.0]
Fooocus version: 2.5.5
Comfy version: 1dba801
SimpleSDXL version: v20240916.2952150
Install simpleai_base 0.3.19
Checking ...
[SimpleAI] GPU: NVIDIA RTX A4000, RAM: 63977MB, SWAP: 0MB, VRAM: 16376MB, DiskFree: 104039MB, CUDA: 12.6
[SimpleAI] local_did/本地身份ID: 4YJaNcoio5xbj3jndVxjqxsRBmfX
Installing torch and torchvision
Installing torchaudio
Version mismatch for numpy: Installed version 2.1.1 does not meet requirement 1.26.4
Installing requirements
Couldn't install requirements.
Command: "/config/other/SimpleSDXL/env/bin/python" -m pip install -r "requirements_versions.txt"  --prefer-binary --index-url https://pypi.tuna.tsinghua.edu.cn/simple
Error code: 1
stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing ./enhanced/libs/rembg-2.0.57-py3-none-any.whl (from -r requirements_versions.txt (line 49))
Processing ./enhanced/libs/groundingdino_py-0.4.1-py2.py3-none-any.whl (from -r requirements_versions.txt (line 50))
Collecting diffusers>=0.29.0 (from -r requirements_versions.txt (line 1))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d1/1c/2ad4e336fe8d83865810f32717a6b38ece3e90c2acc441cfadb5ce950eda/diffusers-0.30.3-py3-none-any.whl (2.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 10.9 MB/s eta 0:00:00
Collecting torchsde==0.2.6 (from -r requirements_versions.txt (line 2))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/dd/1f/b67ebd7e19ffe259f05d3cf4547326725c3113d640c277030be3e9998d6f/torchsde-0.2.6-py3-none-any.whl (61 kB)
Collecting transformers==4.42.4 (from -r requirements_versions.txt (line 3))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6a/dc/23c26b7b0bce5aaccf2b767db3e9c4f5ae4331bd47688c1f2ef091b23696/transformers-4.42.4-py3-none-any.whl (9.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.3/9.3 MB 44.9 MB/s eta 0:00:00
Collecting accelerate==0.32.1 (from -r requirements_versions.txt (line 5))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e4/74/564f621699b049b0358f7ad83d7437f8219a5d6efb69bbfcca328b60152f/accelerate-0.32.1-py3-none-any.whl (314 kB)
Collecting bitsandbytes==0.43.3 (from -r requirements_versions.txt (line 6))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f8/1a/3cbdd70ce276085602ffe7e4f52753a41c43464053eec9e76b3dd065e4c9/bitsandbytes-0.43.3-py3-none-manylinux_2_24_x86_64.whl (137.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.5/137.5 MB 52.2 MB/s eta 0:00:00
Collecting colour-science (from -r requirements_versions.txt (line 7))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/12/a7/b8fc90dfcfa3968a4ce9d74e185e60dcd7884310f59c7161deb5a08c0c21/colour_science-0.4.4-py3-none-any.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 69.0 MB/s eta 0:00:00
Collecting cuda-python==11.7.1 (from -r requirements_versions.txt (line 8))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6f/c7/0fcb3eff882fd84ef8a61a466e4100e5a2033cfc7ba72a6a7bce17d61859/cuda_python-11.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.1/16.1 MB 46.9 MB/s eta 0:00:00
Collecting download==0.3.5 (from -r requirements_versions.txt (line 9))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/37/45/01e7455a9659528e77a414b222326d4c525796e4f571bbabcb2e0ff3d1f4/download-0.3.5-py3-none-any.whl (8.8 kB)
Collecting einops==0.8.0 (from -r requirements_versions.txt (line 10))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/44/5a/f0b9ad6c0a9017e62d4735daaeb11ba3b6c009d69a26141b258cd37b5588/einops-0.8.0-py3-none-any.whl (43 kB)
Collecting ftfy (from -r requirements_versions.txt (line 11))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ed/46/14d230ad057048aea7ccd2f96a80905830866d281ea90a6662a825490659/ftfy-6.2.3-py3-none-any.whl (43 kB)
Collecting gradio==3.41.2 (from -r requirements_versions.txt (line 12))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/df/e7/e0b548208ff5db6323ad974f094e9435adb0a377f35274196fb74adaf58a/gradio-3.41.2-py3-none-any.whl (20.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.1/20.1 MB 47.6 MB/s eta 0:00:00
Collecting httpx==0.27.0 (from -r requirements_versions.txt (line 13))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/41/7b/ddacf6dcebb42466abd03f368782142baa82e08fc0c1f8eaa05b4bae87d5/httpx-0.27.0-py3-none-any.whl (75 kB)
Collecting kornia>=0.7.1 (from -r requirements_versions.txt (line 14))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/58/26/9e6fad0f5e8c25b19e3c25fd0efa0817b9e1a3d9670df8454162e053f283/kornia-0.7.3-py2.py3-none-any.whl (833 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 833.3/833.3 kB 25.1 MB/s eta 0:00:00
Collecting loguru==0.7.2 (from -r requirements_versions.txt (line 15))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/03/0a/4f6fed21aa246c6b49b561ca55facacc2a44b87d65b8b92362a8e99ba202/loguru-0.7.2-py3-none-any.whl (62 kB)
Collecting lxml==4.9.3 (from -r requirements_versions.txt (line 16))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3c/d2/11533f0bc47ff4d828a20cfb702f3453fe714bd5b475fcdc8cec6e6b7dcf/lxml-4.9.3-cp310-cp310-manylinux_2_28_x86_64.whl (7.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 48.9 MB/s eta 0:00:00
Collecting mistune (from -r requirements_versions.txt (line 17))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f0/74/c95adcdf032956d9ef6c89a9b8a5152bf73915f8c633f3e3d88d06bd699c/mistune-3.0.2-py3-none-any.whl (47 kB)
Collecting numba (from -r requirements_versions.txt (line 18))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/79/58/cb4ac5b8f7ec64200460aef1fed88258fb872ceef504ab1f989d2ff0f684/numba-0.60.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 42.4 MB/s eta 0:00:00
Collecting numpy==1.26.4 (from -r requirements_versions.txt (line 19))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4b/d7/ecf66c1cd12dc28b4040b15ab4d17b773b87fa9d29ca16125de01adb36cd/numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 42.9 MB/s eta 0:00:00
Collecting opencv-contrib-python==4.8.0.74 (from -r requirements_versions.txt (line 20))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d6/ca/f109e0a8f33074f0f74cf2677ee0b9bdc025d7fc07b2280afdf7fad38b47/opencv_contrib_python-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.8/67.8 MB 44.3 MB/s eta 0:00:00
Collecting opencv-contrib-python-headless==4.10.0.84 (from -r requirements_versions.txt (line 21))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/00/fc/b01f878cef02f619a4686683db31451d0e3e961646e65ec09ea802c8ceda/opencv_contrib_python_headless-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.0/56.0 MB 56.2 MB/s eta 0:00:00
Collecting open-clip-torch>=2.17.1 (from -r requirements_versions.txt (line 22))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9c/b7/aca0649087854dde2f490696359a918274cb5b9c04e624b22849c66e9f09/open_clip_torch-2.26.1-py3-none-any.whl (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 47.1 MB/s eta 0:00:00
Collecting omegaconf==2.3.0 (from -r requirements_versions.txt (line 23))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/94/1843518e420fa3ed6919835845df698c7e27e183cb997394e4a670973a65/omegaconf-2.3.0-py3-none-any.whl (79 kB)
Collecting onnx==1.12.0 (from -r requirements_versions.txt (line 24))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/53/b7/0a595a49bd5bc9af85498cd336f98cd1eaf4783f6eeed03908b12c5d11a4/onnx-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.1/13.1 MB 46.1 MB/s eta 0:00:00
Collecting onnxruntime==1.18.1 (from -r requirements_versions.txt (line 25))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/04/da/cd671caf4231942c4f68bf0dc1a959303df91dfd0e1d55c556b924d8e68e/onnxruntime-1.18.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (6.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 49.3 MB/s eta 0:00:00
Collecting onnxruntime-gpu (from -r requirements_versions.txt (line 26))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d0/9c/3fa310e0730643051eb88e884f19813a6c8b67d0fbafcda610d960e589db/onnxruntime_gpu-1.19.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (226.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 226.2/226.2 MB 49.9 MB/s eta 0:00:00

stderr: ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement onnx-graphsurgeon==0.3.27 (from versions: 0.0.1.dev4, 0.0.1.dev5, 0.5.2)
ERROR: No matching distribution found for onnx-graphsurgeon==0.3.27
Traceback (most recent call last):
  File "/config/other/SimpleSDXL/SimpleSDXL/entry_with_update.py", line 90, in <module>

CMD Failed requirements: install -r "requirements_versions.txt"
Installing requirements patching
Loaded preset: /config/other/SimpleSDXL/SimpleSDXL/presets/default.json
The path_models_root: /config/other/SimpleSDXL/SimpleSDXL/models
The path_output: /config/other/SimpleSDXL/SimpleSDXL/outputs
    from launch import *
  File "/config/other/SimpleSDXL/SimpleSDXL/launch.py", line 286, in <module>
    from modules import config
  File "/config/other/SimpleSDXL/SimpleSDXL/modules/config.py", line 232, in <module>
    from enhanced.simpleai import init_modelsinfo
  File "/config/other/SimpleSDXL/SimpleSDXL/enhanced/simpleai.py", line 3, in <module>
    import gradio as gr
ModuleNotFoundError: No module named 'gradio'
/entry.sh: line 21: /config/scripts/simplesdxl.sh.sh: No such file or directory
error when launching WebUI

Additional information

No response

@dhlsam dhlsam added the bug Something isn't working label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant