oobabooga / text-generation-webui

A Gradio web UI for Large Language Models.
GNU Affero General Public License v3.0
40.12k stars 5.26k forks source link

Installation fails due to missing gradio, dateuil and probably others #5166

Closed rowild closed 6 months ago

rowild commented 9 months ago

Describe the bug

On my MacBook M2 I follow the installation instructions for mac by calling ./start_macos.sh. However, if fails with this error message:

ModuleNotFoundError: No module named 'gradio'

So I install gradio using pip install gradio and run ./start_macos.sh again. This time it fails with

ModuleNotFoundError: No module named 'dateutil'

(Since I don't know how to install "dateuil" ( a pip install dateutil does not exist) I decided to stopp at this point to file a bug report. BTW: I am a newbie and I have almost no knowledge of python.)

Is there an existing issue for this?

Reproduction

Start the install script for MacOS:

./start_macos.sh

Screenshot

Only log info available, see below.

Logs

(base) ➜  text-generation-webui git:(main) ./start_macos.sh 
Downloading Miniconda from https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-MacOSX-arm64.sh to /Users/robertwildling/Desktop/_AI/text-generation-webui/installer_files/miniconda_installer.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 42.6M  100 42.6M    0     0  31.1M      0  0:00:01  0:00:01 --:--:-- 31.1M
PREFIX=/Users/robertwildling/Desktop/_AI/text-generation-webui/installer_files/conda
Unpacking payload ...

Installing base environment...

Downloading and Extracting Packages

Downloading and Extracting Packages

Preparing transaction: done
Executing transaction: \ 
done
installation finished.
Miniconda version:
conda 23.3.1
Retrieving notices: ...working... /Users/robertwildling/Desktop/_AI/text-generation-webui/installer_files/conda/lib/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'repo.anaconda.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/Users/robertwildling/Desktop/_AI/text-generation-webui/installer_files/conda/lib/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'repo.anaconda.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
done
Collecting package metadata (current_repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 23.3.1
  latest version: 23.11.0

Please update conda by running

    $ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

     conda install conda=23.11.0

## Package Plan ##

  environment location: /Users/robertwildling/Desktop/_AI/text-generation-webui/installer_files/env

  added / updated specs:
    - python=3.11

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2023.12.12 |       hca03da5_0         127 KB
    libffi-3.4.4               |       hca03da5_0         120 KB
    openssl-3.0.12             |       h1a28f6b_0         4.3 MB
    pip-23.3.1                 |  py311hca03da5_0         3.3 MB
    python-3.11.5              |       hb885b13_0        15.4 MB
    setuptools-68.2.2          |  py311hca03da5_0         1.2 MB
    sqlite-3.41.2              |       h80987f9_0         1.1 MB
    wheel-0.41.2               |  py311hca03da5_0         142 KB
    xz-5.4.5                   |       h80987f9_0         366 KB
    ------------------------------------------------------------
                                           Total:        26.2 MB

The following NEW packages will be INSTALLED:

  bzip2              pkgs/main/osx-arm64::bzip2-1.0.8-h620ffc9_4 
  ca-certificates    pkgs/main/osx-arm64::ca-certificates-2023.12.12-hca03da5_0 
  libffi             pkgs/main/osx-arm64::libffi-3.4.4-hca03da5_0 
  ncurses            pkgs/main/osx-arm64::ncurses-6.4-h313beb8_0 
  openssl            pkgs/main/osx-arm64::openssl-3.0.12-h1a28f6b_0 
  pip                pkgs/main/osx-arm64::pip-23.3.1-py311hca03da5_0 
  python             pkgs/main/osx-arm64::python-3.11.5-hb885b13_0 
  readline           pkgs/main/osx-arm64::readline-8.2-h1a28f6b_0 
  setuptools         pkgs/main/osx-arm64::setuptools-68.2.2-py311hca03da5_0 
  sqlite             pkgs/main/osx-arm64::sqlite-3.41.2-h80987f9_0 
  tk                 pkgs/main/osx-arm64::tk-8.6.12-hb8d0fd4_0 
  tzdata             pkgs/main/noarch::tzdata-2023c-h04d1e81_0 
  wheel              pkgs/main/osx-arm64::wheel-0.41.2-py311hca03da5_0 
  xz                 pkgs/main/osx-arm64::xz-5.4.5-h80987f9_0 
  zlib               pkgs/main/osx-arm64::zlib-1.2.13-h5a0b063_0 

Downloading and Extracting Packages

Preparing transaction: done                                                                                                                                                                       
Verifying transaction: done                                                                                                                                                                       
Executing transaction: done                                                                                                                                                                       
#                                                                                                                                                                                                 
# To activate this environment, use                                                                                                                                                               
#                                                                                                                                                                                                 
#     $ conda activate /Users/robertwildling/Desktop/_AI/text-generation-webui/installer_files/env                                                                                                
#                                                                                                                                                                                                 
# To deactivate an active environment, use
#
#     $ conda deactivate

*******************************************************************
* WARNING: You haven't downloaded any model yet.
* Once the web UI launches, head over to the "Model" tab and download one.
*******************************************************************

/Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
╭────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────────────────╮
│ /Users/robertwildling/Desktop/_AI/text-generation-webui/server.py:21 in <module>                                                                                                               │
│                                                                                                                                                                                                │
│    20 with RequestBlocker():                                                                                                                                                                   │
│ ❱  21     import gradio as gr                                                                                                                                                                  │
│    22                                                                                                                                                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'gradio'

(base) ➜  text-generation-webui git:(main) conda install conda=23.11.0
Channels:
 - defaults
 - pytorch-nightly
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

# All requested packages already installed.

(base) ➜  text-generation-webui git:(main) ls -la
total 512
drwxr-xr-x  51 robertwildling  staff   1632 Jan  4 10:48 .
drwxr-xr-x@ 33 robertwildling  staff   1056 Jan  4 10:46 ..
drwxr-xr-x  12 robertwildling  staff    384 Jan  4 10:47 .git
drwxr-xr-x   7 robertwildling  staff    224 Jan  4 10:46 .github
-rw-r--r--   1 robertwildling  staff    564 Jan  4 10:46 .gitignore
-rw-r--r--   1 robertwildling  staff     68 Jan  4 10:46 CMD_FLAGS.txt
-rw-r--r--   1 robertwildling  staff   5001 Jan  4 10:46 Colab-TextGen-GPU.ipynb
-rw-r--r--   1 robertwildling  staff  34523 Jan  4 10:46 LICENSE
-rw-r--r--   1 robertwildling  staff  23820 Jan  4 10:46 README.md
drwxr-xr-x   5 robertwildling  staff    160 Jan  4 10:46 characters
-rwxr-xr-x   1 robertwildling  staff    720 Jan  4 10:46 cmd_linux.sh
-rwxr-xr-x   1 robertwildling  staff    699 Jan  4 10:46 cmd_macos.sh
-rwxr-xr-x   1 robertwildling  staff    938 Jan  4 10:46 cmd_windows.bat
-rwxr-xr-x   1 robertwildling  staff    234 Jan  4 10:46 cmd_wsl.bat
-rw-r--r--   1 robertwildling  staff   1687 Jan  4 10:46 convert-to-safetensors.py
drwxr-xr-x  12 robertwildling  staff    384 Jan  4 10:46 css
drwxr-xr-x   6 robertwildling  staff    192 Jan  4 10:46 docker
drwxr-xr-x  16 robertwildling  staff    512 Jan  4 10:46 docs
-rw-r--r--   1 robertwildling  staff  12953 Jan  4 10:46 download-model.py
drwxr-xr-x  19 robertwildling  staff    608 Jan  4 10:46 extensions
drwxr-xr-x   9 robertwildling  staff    288 Jan  4 10:46 grammars
drwxr-xr-x   5 robertwildling  staff    160 Jan  4 10:48 installer_files
drwxr-xr-x  56 robertwildling  staff   1792 Jan  4 10:46 instruction-templates
drwxr-xr-x   7 robertwildling  staff    224 Jan  4 10:46 js
drwxr-xr-x   3 robertwildling  staff     96 Jan  4 10:46 loras
drwxr-xr-x   4 robertwildling  staff    128 Jan  4 10:46 models
drwxr-xr-x  45 robertwildling  staff   1440 Jan  4 10:48 modules
-rw-r--r--   1 robertwildling  staff  15985 Jan  4 10:46 one_click.py
drwxr-xr-x  17 robertwildling  staff    544 Jan  4 10:46 presets
drwxr-xr-x   5 robertwildling  staff    160 Jan  4 10:46 prompts
-rw-r--r--   1 robertwildling  staff  12700 Jan  4 10:46 requirements.txt
-rw-r--r--   1 robertwildling  staff   5491 Jan  4 10:46 requirements_amd.txt
-rw-r--r--   1 robertwildling  staff   4500 Jan  4 10:46 requirements_amd_noavx2.txt
-rw-r--r--   1 robertwildling  staff   3692 Jan  4 10:46 requirements_apple_intel.txt
-rw-r--r--   1 robertwildling  staff   4734 Jan  4 10:46 requirements_apple_silicon.txt
-rw-r--r--   1 robertwildling  staff   2277 Jan  4 10:46 requirements_cpu_only.txt
-rw-r--r--   1 robertwildling  staff   2272 Jan  4 10:46 requirements_cpu_only_noavx2.txt
-rw-r--r--   1 robertwildling  staff  12742 Jan  4 10:46 requirements_noavx2.txt
-rw-r--r--   1 robertwildling  staff    504 Jan  4 10:46 requirements_nowheels.txt
-rw-r--r--   1 robertwildling  staff   9698 Jan  4 10:46 server.py
-rw-r--r--   1 robertwildling  staff   2127 Jan  4 10:46 settings-template.yaml
-rwxr-xr-x   1 robertwildling  staff   2276 Jan  4 10:46 start_linux.sh
-rwxr-xr-x   1 robertwildling  staff   2257 Jan  4 10:46 start_macos.sh
-rwxr-xr-x   1 robertwildling  staff   3164 Jan  4 10:46 start_windows.bat
-rwxr-xr-x   1 robertwildling  staff    233 Jan  4 10:46 start_wsl.bat
drwxr-xr-x   4 robertwildling  staff    128 Jan  4 10:46 training
-rwxr-xr-x   1 robertwildling  staff    862 Jan  4 10:46 update_linux.sh
-rwxr-xr-x   1 robertwildling  staff    862 Jan  4 10:46 update_macos.sh
-rwxr-xr-x   1 robertwildling  staff    998 Jan  4 10:46 update_windows.bat
-rwxr-xr-x   1 robertwildling  staff    285 Jan  4 10:46 update_wsl.bat
-rwxr-xr-x   1 robertwildling  staff   4274 Jan  4 10:46 wsl.sh
(base) ➜  text-generation-webui git:(main) ./start_macos.sh                                      

*******************************************************************
* WARNING: You haven't downloaded any model yet.
* Once the web UI launches, head over to the "Model" tab and download one.
*******************************************************************

/Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
╭────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────────────────╮
│ /Users/robertwildling/Desktop/_AI/text-generation-webui/server.py:21 in <module>                                                                                                               │
│                                                                                                                                                                                                │
│    20 with RequestBlocker():                                                                                                                                                                   │
│ ❱  21     import gradio as gr                                                                                                                                                                  │
│    22                                                                                                                                                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'gradio'
(base) ➜  text-generation-webui git:(main) pip install gradio                                              
Collecting gradio
  Downloading gradio-4.12.0-py3-none-any.whl.metadata (15 kB)
Requirement already satisfied: aiofiles<24.0,>=22.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (23.2.1)
Requirement already satisfied: altair<6.0,>=4.2.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (5.0.1)
Requirement already satisfied: fastapi in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (0.101.1)
Collecting ffmpy (from gradio)
  Downloading ffmpy-0.3.1.tar.gz (5.5 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting gradio-client==0.8.0 (from gradio)
  Downloading gradio_client-0.8.0-py3-none-any.whl.metadata (7.1 kB)
Requirement already satisfied: httpx in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (0.24.1)
Collecting huggingface-hub>=0.19.3 (from gradio)
  Using cached huggingface_hub-0.20.1-py3-none-any.whl.metadata (12 kB)
Collecting importlib-resources<7.0,>=1.3 (from gradio)
  Using cached importlib_resources-6.1.1-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: jinja2<4.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (3.1.2)
Requirement already satisfied: markupsafe~=2.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (2.1.3)
Requirement already satisfied: matplotlib~=3.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (3.7.2)
Requirement already satisfied: numpy~=1.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (1.25.2)
Requirement already satisfied: orjson~=3.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (3.9.5)
Requirement already satisfied: packaging in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (23.1)
Requirement already satisfied: pandas<3.0,>=1.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (1.5.3)
Requirement already satisfied: pillow<11.0,>=8.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (9.5.0)
Collecting pydantic>=2.0 (from gradio)
  Using cached pydantic-2.5.3-py3-none-any.whl.metadata (65 kB)
Collecting pydub (from gradio)
  Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting python-multipart (from gradio)
  Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 kB 4.6 MB/s eta 0:00:00
Requirement already satisfied: pyyaml<7.0,>=5.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (6.0)
Collecting semantic-version~=2.0 (from gradio)
  Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting tomlkit==0.12.0 (from gradio)
  Downloading tomlkit-0.12.0-py3-none-any.whl.metadata (2.7 kB)
Collecting typer<1.0,>=0.9 (from typer[all]<1.0,>=0.9->gradio)
  Downloading typer-0.9.0-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.9/45.9 kB 4.8 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions~=4.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (4.7.1)
Requirement already satisfied: uvicorn>=0.14.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio) (0.23.2)
Requirement already satisfied: fsspec in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio-client==0.8.0->gradio) (2023.6.0)
Requirement already satisfied: websockets<12.0,>=10.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from gradio-client==0.8.0->gradio) (11.0.3)
Requirement already satisfied: jsonschema>=3.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from altair<6.0,>=4.2.0->gradio) (4.19.0)
Requirement already satisfied: toolz in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.0)
Requirement already satisfied: filelock in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from huggingface-hub>=0.19.3->gradio) (3.12.2)
Requirement already satisfied: requests in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from huggingface-hub>=0.19.3->gradio) (2.31.0)
Requirement already satisfied: tqdm>=4.42.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from huggingface-hub>=0.19.3->gradio) (4.65.0)
Requirement already satisfied: contourpy>=1.0.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from matplotlib~=3.0->gradio) (1.1.0)
Requirement already satisfied: cycler>=0.10 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from matplotlib~=3.0->gradio) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from matplotlib~=3.0->gradio) (4.42.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from matplotlib~=3.0->gradio) (1.4.4)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from matplotlib~=3.0->gradio) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in /Users/robertwildling/.local/lib/python3.11/site-packages (from matplotlib~=3.0->gradio) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from pandas<3.0,>=1.0->gradio) (2023.3)
Collecting annotated-types>=0.4.0 (from pydantic>=2.0->gradio)
  Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.14.6 (from pydantic>=2.0->gradio)
  Using cached pydantic_core-2.14.6-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.5 kB)
Requirement already satisfied: click<9.0.0,>=7.1.1 in /Users/robertwildling/.local/lib/python3.11/site-packages (from typer<1.0,>=0.9->typer[all]<1.0,>=0.9->gradio) (8.1.3)
Requirement already satisfied: colorama<0.5.0,>=0.4.3 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from typer[all]<1.0,>=0.9->gradio) (0.4.6)
Collecting shellingham<2.0.0,>=1.3.0 (from typer[all]<1.0,>=0.9->gradio)
  Downloading shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
Requirement already satisfied: rich<14.0.0,>=10.11.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from typer[all]<1.0,>=0.9->gradio) (13.5.2)
Requirement already satisfied: h11>=0.8 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from uvicorn>=0.14.0->gradio) (0.14.0)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from fastapi->gradio) (0.27.0)
Requirement already satisfied: certifi in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from httpx->gradio) (2023.7.22)
Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from httpx->gradio) (0.17.3)
Requirement already satisfied: idna in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from httpx->gradio) (3.4)
Requirement already satisfied: sniffio in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from httpx->gradio) (1.3.0)
Requirement already satisfied: anyio<5.0,>=3.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->gradio) (3.7.1)
Requirement already satisfied: attrs>=22.2.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (23.1.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (2023.7.1)
Requirement already satisfied: referencing>=0.28.4 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.30.2)
Requirement already satisfied: rpds-py>=0.7.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.9.2)
Requirement already satisfied: six>=1.5 in /Users/robertwildling/.local/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)
Requirement already satisfied: markdown-it-py>=2.2.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from rich<14.0.0,>=10.11.0->typer[all]<1.0,>=0.9->gradio) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from rich<14.0.0,>=10.11.0->typer[all]<1.0,>=0.9->gradio) (2.16.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from requests->huggingface-hub>=0.19.3->gradio) (3.2.0)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from requests->huggingface-hub>=0.19.3->gradio) (1.26.6)
Requirement already satisfied: mdurl~=0.1 in /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich<14.0.0,>=10.11.0->typer[all]<1.0,>=0.9->gradio) (0.1.2)
Downloading gradio-4.12.0-py3-none-any.whl (16.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.6/16.6 MB 49.2 MB/s eta 0:00:00
Downloading gradio_client-0.8.0-py3-none-any.whl (305 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 305.1/305.1 kB 28.9 MB/s eta 0:00:00
Downloading tomlkit-0.12.0-py3-none-any.whl (37 kB)
Using cached huggingface_hub-0.20.1-py3-none-any.whl (330 kB)
Using cached importlib_resources-6.1.1-py3-none-any.whl (33 kB)
Using cached pydantic-2.5.3-py3-none-any.whl (381 kB)
Using cached pydantic_core-2.14.6-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB)
Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Building wheels for collected packages: ffmpy
  Building wheel for ffmpy (pyproject.toml) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.1-py3-none-any.whl size=5579 sha256=69ad06f0e1979bc27f243e9198cd500a385fcd48bc256b4e8aab9f684117c9b9
  Stored in directory: /Users/robertwildling/Library/Caches/pip/wheels/99/3b/84/22ac1eab7a10222ac6bbc3f7e69b04f3980db328978c533a3f
Successfully built ffmpy
Installing collected packages: pydub, ffmpy, typer, tomlkit, shellingham, semantic-version, python-multipart, pydantic-core, importlib-resources, annotated-types, pydantic, huggingface-hub, gradio-client, gradio
  Attempting uninstall: pydantic
    Found existing installation: pydantic 1.10.12
    Uninstalling pydantic-1.10.12:
      Successfully uninstalled pydantic-1.10.12
  Attempting uninstall: huggingface-hub
    Found existing installation: huggingface-hub 0.16.4
    Uninstalling huggingface-hub-0.16.4:
      Successfully uninstalled huggingface-hub-0.16.4
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
langchain 0.0.191 requires pydantic<2,>=1, but you have pydantic 2.5.3 which is incompatible.
langchainplus-sdk 0.0.20 requires pydantic<2,>=1, but you have pydantic 2.5.3 which is incompatible.
argilla 1.1.1 requires httpx~=0.15.0, but you have httpx 0.24.1 which is incompatible.
Successfully installed annotated-types-0.6.0 ffmpy-0.3.1 gradio-4.12.0 gradio-client-0.8.0 huggingface-hub-0.20.1 importlib-resources-6.1.1 pydantic-2.5.3 pydantic-core-2.14.6 pydub-0.25.1 python-multipart-0.0.6 semantic-version-2.10.0 shellingham-1.5.4 tomlkit-0.12.0 typer-0.9.0
(base) ➜  text-generation-webui git:(main) ./start_macos.sh  

*******************************************************************
* WARNING: You haven't downloaded any model yet.
* Once the web UI launches, head over to the "Model" tab and download one.
*******************************************************************

/Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
╭────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────────────────╮
│ /Users/robertwildling/Desktop/_AI/text-generation-webui/server.py:21 in <module>                                                                                                               │
│                                                                                                                                                                                                │
│    20 with RequestBlocker():                                                                                                                                                                   │
│ ❱  21     import gradio as gr                                                                                                                                                                  │
│    22                                                                                                                                                                                          │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gradio/__init__.py:3 in <module>                                                                                     │
│                                                                                                                                                                                                │
│     2                                                                                                                                                                                          │
│ ❱   3 import gradio._simple_templates                                                                                                                                                          │
│     4 import gradio.components as components                                                                                                                                                   │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gradio/_simple_templates/__init__.py:1 in <module>                                                                   │
│                                                                                                                                                                                                │
│ ❱ 1 from .simpledropdown import SimpleDropdown                                                                                                                                                 │
│   2 from .simpletextbox import SimpleTextbox                                                                                                                                                   │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gradio/_simple_templates/simpledropdown.py:6 in <module>                                                             │
│                                                                                                                                                                                                │
│     5                                                                                                                                                                                          │
│ ❱   6 from gradio.components.base import FormComponent                                                                                                                                         │
│     7 from gradio.events import Events                                                                                                                                                         │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gradio/components/__init__.py:1 in <module>                                                                          │
│                                                                                                                                                                                                │
│ ❱   1 from gradio.components.annotated_image import AnnotatedImage                                                                                                                             │
│     2 from gradio.components.audio import Audio                                                                                                                                                │
│                                                                                                                                                                                                │
│                                                                                    ... 1 frames hidden ...                                                                                     │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gradio/processing_utils.py:23 in <module>                                                                            │
│                                                                                                                                                                                                │
│    22 from gradio.data_classes import FileData, GradioModel, GradioRootModel                                                                                                                   │
│ ❱  23 from gradio.utils import abspath                                                                                                                                                         │
│    24                                                                                                                                                                                          │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gradio/utils.py:41 in <module>                                                                                       │
│                                                                                                                                                                                                │
│     40 import httpx                                                                                                                                                                            │
│ ❱   41 import matplotlib                                                                                                                                                                       │
│     42 from typing_extensions import ParamSpec                                                                                                                                                 │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/matplotlib/__init__.py:227 in <module>                                                                               │
│                                                                                                                                                                                                │
│    226                                                                                                                                                                                         │
│ ❱  227 _check_versions()                                                                                                                                                                       │
│    228                                                                                                                                                                                         │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/site-packages/matplotlib/__init__.py:221 in _check_versions                                                                        │
│                                                                                                                                                                                                │
│    220     ]:                                                                                                                                                                                  │
│ ❱  221         module = importlib.import_module(modname)                                                                                                                                       │
│    222         if parse_version(module.__version__) < parse_version(minver):                                                                                                                   │
│                                                                                                                                                                                                │
│ /Users/robertwildling/.pyenv/versions/3.11.2/lib/python3.11/importlib/__init__.py:126 in import_module                                                                                         │
│                                                                                                                                                                                                │
│   125             level += 1                                                                                                                                                                   │
│ ❱ 126     return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                          │
│   127                                                                                                                                                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'dateutil'
(base) ➜  text-generation-webui git:(main) ./start_macos.sh

System Info

MacBook Pro M2
latest MacOS 13.6
rowild commented 8 months ago

Anybody?

github-actions[bot] commented 6 months ago

This issue has been closed due to inactivity for 2 months. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.

nilknow commented 2 months ago

@rowild I have same issue when using gradio 4.39.0, then it is fixed after running pip install gradio==4.38.1