Closed thibaudbrg closed 1 month ago
Had the same issue; what worked for me:
pip uninstall huggingface_hub
pip install huggingface-hub==0.20.3
Yep that worked, Thank you :)
I'm using ubuntu 22.04 from the microsoft store on Windows 11. Here is the bash script that I put together. This got everything working seamlessly as of August 2024.
#!/bin/bash
# Create a new conda environment
conda create -n whisper_diar2 python=3.10 --yes
# Initialize conda and activate the new environment
source ~/miniconda3/etc/profile.d/conda.sh
conda activate whisper_diar2
# Upgrade pip
pip install --upgrade pip
# Install JupyterLab and IPython kernel
conda install -c conda-forge jupyterlab --yes
conda install ipykernel --yes
python -m ipykernel install --user --name whisper_diar2 --display-name "whisper_diar2"
# Reinstall PyTorch with CUDA support
#pip uninstall torch --yes
#conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia --yes
# Install Cython and FFmpeg
#pip install cython
sudo apt update && sudo apt install -y cython3 ffmpeg
# https://github.com/MahmoudAshraf97/whisper-diarization/issues/188#issuecomment-2277862623
pip install --upgrade Cython setuptools wheel
# Install other required Python packages
pip install -r requirements.txt
# Install Nemo toolkit (you can modify the version if needed)
pip install nemo_toolkit==1.18.1
# notebook pip installs
pip install git+https://github.com/m-bain/whisperX.git@78dcfaab51005aa703ee21375f81ed31bc248560
pip install --no-build-isolation nemo_toolkit[asr]==1.23.0
pip install --no-deps git+https://github.com/facebookresearch/demucs#egg=demucs
pip install git+https://github.com/oliverguhr/deepmultilingualpunctuation.git
pip install git+https://github.com/MahmoudAshraf97/ctc-forced-aligner.git
# https://github.com/MahmoudAshraf97/whisper-diarization/issues/202
pip uninstall huggingface_hub --yes
pip install huggingface-hub==0.20.3
echo "Installation complete. The environment 'whisper_diar2' is set up and ready to use."
Had the same issue; what worked for me:
pip uninstall huggingface_hub pip install huggingface-hub==0.20.3
thanks bro
Installing collected packages: huggingface-hub 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. transformers 4.44.0 requires huggingface-hub<1.0,>=0.23.2, but you have huggingface-hub 0.20.3 which is incompatible.
Installing collected packages: huggingface-hub 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. transformers 4.44.0 requires huggingface-hub<1.0,>=0.23.2, but you have huggingface-hub 0.20.3 which is incompatible.
can you solved it?
Thank you for your work! I get this error right now: Using Python 3.10.12 or 3.11.0 I get this error. Here is the trace. It is likely coming from nemo from NVIDIA. Need probably a more recent version. Using
nemo_toolkit==1.20.0
and tried also withnemo_toolkit==1.21.0