text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

ImportError: DLL Load Failed in Text Generation Web UI

Open redflagrul opened this issue 1 year ago • 1 comments

Describe the bug

When attempting to run the server using the command python server.py --cpu, an ImportError occurs. The error message indicates that there is a failure in loading a required DLL, specifically related to the pyarrow library. This prevents the server from starting, impacting functionality in the text generation web UI.

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Reproduction

Set up the environment:
    Install Miniconda and create a new environment named textgen.
    Activate the environment:
    bash

conda activate textgen

Install required packages:

Install necessary libraries:
bash

pip install transformers datasets pyarrow

Clone the repository:

Clone the text generation web UI repository:
bash

git clone <repository-url>
cd text-generation-webui

Run the server:

Execute the command:
bash

python server.py --cpu

Observe the error:

Note that the following error occurs:
cal

ImportError: DLL load failed while importing lib: The specified procedure could not be found.

Screenshot

image

Logs

(textgen) C:\Users\user\text-generation-webui>python server.py --cpu
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ C:\Users\user\text-generation-webui\server.py:40 in <module>              │
│                                                                             │
│    39 import modules.extensions as extensions_module                        │
│ >  40 from modules import (                                                 │
│    41     chat,                                                             │
│                                                                             │
│ C:\Users\user\text-generation-webui\modules\training.py:20 in <module>    │
│    19 import transformers                                                   │
│ >  20 from datasets import Dataset, load_dataset                            │
│    21 from peft import (                                                    │
│                                                                             │
│ C:\Users\user\.conda\envs\textgen\Lib\site-packages\datasets\__init__.py: │
│ 17 in <module>                                                              │
│                                                                             │
│   16                                                                        │
│ > 17 from .arrow_dataset import Dataset                                     │
│   18 from .arrow_reader import ReadInstruction                              │
│                                                                             │
│ C:\Users\user\.conda\envs\textgen\Lib\site-packages\datasets\arrow_datase │
│ t.py:60 in <module>                                                         │
│                                                                             │
│     59 import pandas as pd                                                  │
│ >   60 import pyarrow as pa                                                 │
│     61 import pyarrow.compute as pc                                         │
│                                                                             │
│ C:\Users\user\.conda\envs\textgen\Lib\site-packages\pyarrow\__init__.py:6 │
│ 5 in <module>                                                               │
│                                                                             │
│    64 _gc.disable()                                                         │
│ >  65 import pyarrow.lib as _lib                                            │
│    66 if _gc_enabled:                                                       │
└─────────────────────────────────────────────────────────────────────────────┘
ImportError: DLL load failed while importing lib: The specified procedure could
not be found.

(textgen) C:\Users\user\text-generation-webui>

System Info

Windows 8.1 
MiniConda

redflagrul avatar Jul 22 '24 11:07 redflagrul