VITS-fast-fine-tuning: Colab Step 1 Error (ModuleNotFoundError: No module named 'distutils.cmd')

In Colab, I followed this solution #343
but still have a issue, Error (ModuleNotFoundError: No module named 'distutils.cmd')
so i Added this line:
!sudo apt-get install python3-distutils

and then, for some reason I get same error again
ERROR: Could not build wheels for pyopenjtalk, which is required to install pyproject.toml-based projects

so i just installed pyopenjtalk again manually with !pip install pyopenjtalk --no-build-isolation

final code is here:

#@title STEP 1 复制代码库并安装运行环境
#@markdown #STEP 1 (6 min)
#@markdown ##复制代码库并安装运行环境
#@markdown ##Clone repository & Build environment
!apt-get install python3.8

!sudo apt-get install python3-distutils # ADDED

!cp -r /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.8/
!git clone https://github.com/Plachtaa/VITS-fast-fine-tuning.git

!python3.8 -m pip install --upgrade --force-reinstall regex
!python3.8 -m pip install --upgrade --force-reinstall numba
!python3.8 -m pip install --force-reinstall soundfile
!python3.8 -m pip install --force-reinstall gradio
!python3.8 -m pip install imageio==2.4.1
!python3.8 -m pip install --upgrade youtube-dl
!python3.8 -m pip install moviepy

!python3.8 -m pip install --no-build-isolation -r requirements.txt # ADDED
!python3.8 -m pip install pyopenjtalk --no-build-isolation # ADDED
!python3.8 -m pip install --upgrade numpy # ADDED
!python3.8 -m pip install --upgrade pyzmq

!python3.8 -m pip install pydantic==1.10.4
# !pip install -U openai-whisper

# build monotonic align
%cd monotonic_align/
!mkdir monotonic_align
!python3.8 setup.py build_ext --inplace
%cd ..
!mkdir pretrained_models
# download data for fine-tuning
!wget https://huggingface.co/datasets/Plachta/sampled_audio4ft/resolve/main/sampled_audio4ft_v2.zip
!unzip sampled_audio4ft_v2.zip

%cd VITS-fast-fine-tuning
# create necessary directories
!mkdir video_data
!mkdir raw_audio
!mkdir denoised_audio
!mkdir custom_character_voice
!mkdir segmented_character_voice

I didn’t test other steps yet. but there’s no error anymore in step 1

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20

Most upvoted comments

Thank you so much buddy, very appreciated for your great work!

Well I think you’re right.I canceled Add Auxiliary but it still goes slowly.So maybe there’s something wrong.