ParisNeo/lollms-webui

ERROR: No matching distribution found for setuptools>=40.8.0

Minionan opened this issue · 5 comments

Expected Behavior

Running cTransformers installation should provide Cuda support.

Current Behavior

Running cTransformers installation ends with success but no Cuda support due to the setuptools version error:
Looking in indexes: https://download.pytorch.org/whl/cu117
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions:none)
ERROR: No matching distribution found for setuptools>=40.8.0

Steps to Reproduce

Installing c_transformers binding all is well until:
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
Looking in indexes: https://download.pytorch.org/whl/cu117
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Couldn't find Cuda build tools on your PC. Reverting to CPU.

System has Cuda Toolkit installed and working:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+

System has setuptools already installed:
setuptools in /usr/local/lib/python3.11/site-packages (65.5.0)

Possible Solution

Context

Screenshots

Collecting cmake (from triton==2.0.0->torch)
Downloading https://download.pytorch.org/whl/cmake-3.25.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.7/23.7 MB 76.8 MB/s eta 0:00:00
Collecting lit (from triton==2.0.0->torch)
Downloading https://download.pytorch.org/whl/lit-15.0.7.tar.gz (132 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.3/132.3 kB 178.5 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
Looking in indexes: https://download.pytorch.org/whl/cu117
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Couldn't find Cuda build tools on your PC. Reverting to CPU.
Collecting torch
Downloading torch-2.0.1-cp311-cp311-manylinux1_x86_64.whl (619.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 619.9/619.9 MB 45.6 MB/s eta 0:00:00
Collecting torchvision
Downloading torchvision-0.15.2-cp311-cp311-manylinux1_x86_64.whl (6.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.0/6.0 MB 49.6 MB/s eta 0:00:00

found solution? facing same issue

  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      Looking in indexes: https://download.pytorch.org/whl/cu118
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.```

if in venv you need exit venv and update setuptools pip install --upgrade setuptools

MaKaNu commented

what if pip list returns setuptools 65.5.0? to much on the edge?

Hi, is the new updates fixing this?

Had the same issue while having latest version of wheel and setuptools (69.x.x) already installed. What worked for me was running the installation with --extra-index-url instead of just --index-url. whit this it seems to install a bunch of additional dependencies but after that the --reinstall-torch option ran smoothly.

my the whole command line was something like this:
~/stable-diffusion-webui/venv/bin/python3" -m pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2

and afterwards ./webui.sh --reinstall-torch