oobabooga / text-generation-webui

A Gradio web UI for Large Language Models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'multipart'

Avroboros opened this issue · comments

Describe the bug

When running start_windows.bat on the latest version of textgen-webui, the interface won't load due to the "multipart" module being unrecognized. I ran cmd_windows.bat and attempted to run pip install, but it simply said that its already installed (the requirement is already satisfied). I then attempted to do pip install on the computer itself, but after downloading, start_windows.bat still presents the same error.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

Simply run start_windows.bat on the latest version of textgen-webui.

Screenshot

image

Logs

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


╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\AI\text-gen-webui\server.py:21 in <module>                                                                        │
│                                                                                                                      │
│    20 with RequestBlocker():                                                                                         │
│ ❱  21     from modules import gradio_hijack                                                                          │
│    22     import gradio as gr                                                                                        │
│                                                                                                                      │
│ C:\AI\text-gen-webui\modules\gradio_hijack.py:9 in <module>                                                          │
│                                                                                                                      │
│    8                                                                                                                 │
│ ❱  9 import gradio as gr                                                                                             │
│   10                                                                                                                 │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\__init__.py:3 in <module>                          │
│                                                                                                                      │
│     2                                                                                                                │
│ ❱   3 import gradio._simple_templates                                                                                │
│     4 import gradio.image_utils                                                                                      │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\_simple_templates\__init__.py:1 in <module>        │
│                                                                                                                      │
│ ❱ 1 from .simpledropdown import SimpleDropdown                                                                       │
│   2 from .simpleimage import SimpleImage                                                                             │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\_simple_templates\simpledropdown.py:6 in <module>  │
│                                                                                                                      │
│     5                                                                                                                │
│ ❱   6 from gradio.components.base import FormComponent                                                               │
│     7 from gradio.events import Events                                                                               │
│                                                                                                                      │
│                                               ... 1 frames hidden ...                                                │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\components\annotated_image.py:14 in <module>       │
│                                                                                                                      │
│    13 from gradio import processing_utils, utils                                                                     │
│ ❱  14 from gradio.components.base import Component                                                                   │
│    15 from gradio.data_classes import FileData, GradioModel                                                          │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\components\base.py:20 in <module>                  │
│                                                                                                                      │
│    19 from gradio import utils                                                                                       │
│ ❱  20 from gradio.blocks import Block, BlockContext                                                                  │
│    21 from gradio.component_meta import ComponentMeta                                                                │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\blocks.py:29 in <module>                           │
│                                                                                                                      │
│     28                                                                                                               │
│ ❱   29 from gradio import (                                                                                          │
│     30     analytics,                                                                                                │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\networking.py:13 in <module>                       │
│                                                                                                                      │
│   12                                                                                                                 │
│ ❱ 13 from gradio.routes import App  # HACK: to avoid circular import # noqa: F401                                    │
│   14 from gradio.tunneling import Tunnel                                                                             │
│                                                                                                                      │
│ C:\AI\text-gen-webui\installer_files\env\Lib\site-packages\gradio\routes.py:53 in <module>                           │
│                                                                                                                      │
│     52 from jinja2.exceptions import TemplateNotFound                                                                │
│ ❱   53 from multipart.multipart import parse_options_header                                                          │
│     54 from starlette.background import BackgroundTask                                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'multipart'
Pressione qualquer tecla para continuar. . .

System Info

Operating System - Windows 11
[Dual Cores]
GPU - NVIDIA GeForce GTX 1650 (4GB)
CPU - Intel UHD Graphics (8GB)

I had a different error with multipart that was raised by fastapi instead of gradio.
For me it was fixed by:
cmd_windows.bat
pip install python-multipart==0.0.16

Maybe it could help here too.