Skip to content

Python dependency hell, run.sh fails on python3.10 and python3.12 #18

Description

@NucleaPeon

I'm trying to install lollms using run.sh. I prefer using direnv instead of venv, but I don't think that's causing my issues in this case.

I set up a Python3.10 virtual environment and call run.sh and get this result:

dev@dev ~/Software/lollms $ ./run.sh 
===== LOLLMs Runner =====
[INFO] Installing dependencies...
Requirement already satisfied: pip in ./.direnv/python-3.10/lib/python3.10/site-packages (26.1.2)
Collecting sse_starlette==3.0.2 (from -r requirements.txt (line 1))
  Downloading sse_starlette-3.0.2-py3-none-any.whl.metadata (11 kB)
Collecting fastapi==0.129.0 (from -r requirements.txt (line 3))
  Downloading fastapi-0.129.0-py3-none-any.whl.metadata (30 kB)
Collecting uvicorn==0.37.0 (from uvicorn[standard]==0.37.0->-r requirements.txt (line 4))
  Downloading uvicorn-0.37.0-py3-none-any.whl.metadata (6.6 kB)
Collecting werkzeug==3.1.3 (from -r requirements.txt (line 5))
  Downloading werkzeug-3.1.3-py3-none-any.whl.metadata (3.7 kB)
Collecting websockets==15.0.1 (from -r requirements.txt (line 6))
  Downloading websockets-15.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.8 kB)
Collecting toml==0.10.2 (from -r requirements.txt (line 9))
  Downloading toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
Collecting sqlalchemy==2.0.43 (from -r requirements.txt (line 10))
  Downloading sqlalchemy-2.0.43-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)
Collecting passlib==1.7.4 (from passlib[bcrypt]==1.7.4->-r requirements.txt (line 11))
  Downloading passlib-1.7.4-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting python-jose==3.5.0 (from python-jose[cryptography]==3.5.0->-r requirements.txt (line 12))
  Downloading python_jose-3.5.0-py2.py3-none-any.whl.metadata (5.5 kB)
Collecting Authlib==1.6.5 (from -r requirements.txt (line 13))
  Downloading authlib-1.6.5-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting python-multipart==0.0.20 (from -r requirements.txt (line 14))
  Downloading python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)
Collecting bcrypt==4.0.1 (from -r requirements.txt (line 15))
  Downloading bcrypt-4.0.1-cp36-abi3-manylinux_2_28_x86_64.whl.metadata (9.0 kB)
Collecting lollms-client==1.15.6 (from -r requirements.txt (line 18))
  Downloading lollms_client-1.15.6-py3-none-any.whl.metadata (105 kB)
Collecting ascii_colors==0.11.25 (from -r requirements.txt (line 19))
  Downloading ascii_colors-0.11.25-py3-none-any.whl.metadata (44 kB)
Collecting pipmaster==1.1.13 (from -r requirements.txt (line 20))
  Downloading pipmaster-1.1.13-py3-none-any.whl.metadata (13 kB)
Collecting openai==2.1.0 (from -r requirements.txt (line 23))
  Downloading openai-2.1.0-py3-none-any.whl.metadata (29 kB)
Collecting tiktoken==0.11.0 (from -r requirements.txt (line 24))
  Downloading tiktoken-0.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Collecting pydantic==2.12.5 (from -r requirements.txt (line 32))
  Downloading pydantic-2.12.5-py3-none-any.whl.metadata (90 kB)
Collecting Pillow==11.3.0 (from -r requirements.txt (line 34))
  Downloading pillow-11.3.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (9.0 kB)
Collecting numpy==2.2.6 (from -r requirements.txt (line 35))
  Downloading numpy-2.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (62 kB)
ERROR: Ignored the following versions that require a different python version: 2.3.0 Requires-Python >=3.11; 2.3.1 Requires-Python >=3.11; 2.3.2 Requires-Python >=3.11; 2.3.3 Requires-Python >=3.11; 2.3.4 Requires-Python >=3.11; 2.3.5 Requires-Python >=3.11; 2.4.0 Requires-Python >=3.11; 2.4.0rc1 Requires-Python >=3.11; 2.4.1 Requires-Python >=3.11; 2.4.2 Requires-Python >=3.11; 2.4.3 Requires-Python >=3.11; 2.4.4 Requires-Python >=3.11; 2.4.5 Requires-Python >=3.11; 2.4.6 Requires-Python >=3.11; 2.5.0 Requires-Python >=3.12; 2.5.0rc1 Requires-Python >=3.12; 2.5.1 Requires-Python >=3.12
ERROR: Could not find a version that satisfies the requirement safe_store==3.5.1 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6, 0.3.0, 0.3.1, 0.3.2, 0.3.5, 0.4.0, 0.6.0, 0.6.5, 0.6.6, 0.7.0, 0.7.1, 0.7.2, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0, 2.5.5, 2.5.7, 2.6.0, 2.7.0, 2.7.1, 2.8.0, 3.0.0, 3.1.0, 3.1.1, 3.2.1, 3.2.2, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6, 3.3.7, 3.3.8, 3.4.0, 3.4.1, 3.4.2, 3.5.0)
ERROR: No matching distribution found for safe_store==3.5.1

I install a Python3.12 environment and get this error message:

dev@dev ~/Software/lollms $ ./run.sh 
===== LOLLMs Runner =====
[INFO] Installing dependencies...
Requirement already satisfied: pip in ./.direnv/python-3.12/lib/python3.12/site-packages (26.1.2)
Collecting sse_starlette==3.0.2 (from -r requirements.txt (line 1))
  Downloading sse_starlette-3.0.2-py3-none-any.whl.metadata (11 kB)
Collecting fastapi==0.129.0 (from -r requirements.txt (line 3))
  Downloading fastapi-0.129.0-py3-none-any.whl.metadata (30 kB)
Collecting uvicorn==0.37.0 (from uvicorn[standard]==0.37.0->-r requirements.txt (line 4))
  Downloading uvicorn-0.37.0-py3-none-any.whl.metadata (6.6 kB)
Collecting werkzeug==3.1.3 (from -r requirements.txt (line 5))
  Downloading werkzeug-3.1.3-py3-none-any.whl.metadata (3.7 kB)
Collecting websockets==15.0.1 (from -r requirements.txt (line 6))
  Downloading websockets-15.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.8 kB)
Collecting toml==0.10.2 (from -r requirements.txt (line 9))
  Downloading toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
Collecting sqlalchemy==2.0.43 (from -r requirements.txt (line 10))
  Downloading sqlalchemy-2.0.43-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)
Collecting passlib==1.7.4 (from passlib[bcrypt]==1.7.4->-r requirements.txt (line 11))
  Downloading passlib-1.7.4-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting python-jose==3.5.0 (from python-jose[cryptography]==3.5.0->-r requirements.txt (line 12))
  Downloading python_jose-3.5.0-py2.py3-none-any.whl.metadata (5.5 kB)
Collecting Authlib==1.6.5 (from -r requirements.txt (line 13))
  Downloading authlib-1.6.5-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting python-multipart==0.0.20 (from -r requirements.txt (line 14))
  Downloading python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)
Collecting bcrypt==4.0.1 (from -r requirements.txt (line 15))
  Downloading bcrypt-4.0.1-cp36-abi3-manylinux_2_28_x86_64.whl.metadata (9.0 kB)
Collecting lollms-client==1.15.6 (from -r requirements.txt (line 18))
  Downloading lollms_client-1.15.6-py3-none-any.whl.metadata (105 kB)
Collecting ascii_colors==0.11.25 (from -r requirements.txt (line 19))
  Downloading ascii_colors-0.11.25-py3-none-any.whl.metadata (44 kB)
Collecting pipmaster==1.1.13 (from -r requirements.txt (line 20))
  Downloading pipmaster-1.1.13-py3-none-any.whl.metadata (13 kB)
Collecting openai==2.1.0 (from -r requirements.txt (line 23))
  Downloading openai-2.1.0-py3-none-any.whl.metadata (29 kB)
Collecting tiktoken==0.11.0 (from -r requirements.txt (line 24))
  Downloading tiktoken-0.11.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Collecting pydantic==2.12.5 (from -r requirements.txt (line 32))
  Downloading pydantic-2.12.5-py3-none-any.whl.metadata (90 kB)
Collecting Pillow==11.3.0 (from -r requirements.txt (line 34))
  Downloading pillow-11.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (9.0 kB)
Collecting numpy==2.2.6 (from -r requirements.txt (line 35))
  Downloading numpy-2.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (62 kB)
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement safe_store==3.5.1 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.6, 0.3.0, 0.3.1, 0.3.2, 0.3.5, 0.4.0, 0.6.0, 0.6.5, 0.6.6, 0.7.0, 0.7.1, 0.7.2, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0, 2.5.5, 2.5.7, 2.6.0, 2.7.0, 2.7.1, 2.8.0, 3.0.0, 3.1.0, 3.1.1, 3.2.1, 3.2.2, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6, 3.3.7, 3.3.8, 3.4.0, 3.4.1, 3.4.2, 3.5.0)
ERROR: No matching distribution found for safe_store==3.5.1

I know issues like this are tedious, thanks for the work you put into these projects.

EDIT:

Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.25.0
Qt Version: 6.11.1
Kernel Version: 6.18.35-gentoo-dist-bin (64-bit)
Graphics Platform: X11
Processors: 48 × Intel® Xeon® CPU E5-2697 v2 @ 2.70GHz
Memory: 128 GiB of RAM (125.8 GiB usable)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions