From 079acd7c6b4fe773bbeac73e81788938b4bf4f8d Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 25 Oct 2024 23:42:13 +0200 Subject: [PATCH] Re-apply workaround Signed-off-by: Ettore Di Giacinto --- backend/python/parler-tts/install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/backend/python/parler-tts/install.sh b/backend/python/parler-tts/install.sh index fc51d5647e19..14df9b14068b 100755 --- a/backend/python/parler-tts/install.sh +++ b/backend/python/parler-tts/install.sh @@ -11,4 +11,18 @@ if [ "x${BUILD_PROFILE}" == "xintel" ]; then EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match" fi -installRequirements \ No newline at end of file + +installRequirements + + +# https://github.com/descriptinc/audiotools/issues/101 +# incompatible protobuf versions. +PYDIR=python3.10 +pyenv="${MY_DIR}/venv/lib/${PYDIR}/site-packages/google/protobuf/internal/" + +if [ ! -d ${pyenv} ]; then + echo "(parler-tts/install.sh): Error: ${pyenv} does not exist" + exit 1 +fi + +curl -L https://raw.githubusercontent.com/protocolbuffers/protobuf/main/python/google/protobuf/internal/builder.py -o ${pyenv}/builder.py