collabora / WhisperLive

A nearly-live implementation of OpenAI's Whisper.
MIT License
2.09k stars 283 forks source link

Server is not running - Linux ubuntu 22.04 problem in virtual Enviroment venv #231

Open mont13 opened 5 months ago

mont13 commented 5 months ago

I found a problem with installation via venv on Linux Ubuntu 22.04.

After installing Python 3.10, I used setup.py from GitHub to install it in a virtual environment.

First, there is no path for libnccl.so.2. You have to add it manually, for example:

export LD_LIBRARY_PATH=/home/xxxx/Documents/python/whisperlive/lib/python3.10/site-packages/nvidia_nccl_cu12-2.20.5-py3.10-linux-x86_64.egg/nvidia/nccl/lib:$LD_LIBRARY_PATH

The second problem is the NumPy version. It is necessary to uninstall the old version with pip uninstall numpy and install a specific version, for example, pip install numpy==1.23.5.

These changes can be added to the script setup.py, for example. After these changes, the server is running.