Skip to content

Commit 9c5cd9b

Browse files
authored
fix(parler-tts): pin grpcio-tools (#3960)
Seems we require a specific version to build the backend files. Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 07ce0a3 commit 9c5cd9b

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

backend/python/parler-tts/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ export SKIP_CONDA=1
1212
endif
1313

1414
.PHONY: parler-tts
15-
parler-tts: protogen
15+
parler-tts:
1616
@echo "Installing $(CONDA_ENV_PATH)..."
1717
bash install.sh $(CONDA_ENV_PATH)
18+
$(MAKE) protogen
1819

1920
.PHONY: run
2021
run: protogen
@@ -36,7 +37,7 @@ protogen-clean:
3637
$(RM) backend_pb2_grpc.py backend_pb2.py
3738

3839
backend_pb2_grpc.py backend_pb2.py:
39-
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
40+
bash protogen.sh
4041

4142
.PHONY: clean
4243
clean: protogen-clean

backend/python/parler-tts/install.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,4 @@ if [ "x${BUILD_PROFILE}" == "xintel" ]; then
1111
EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match"
1212
fi
1313

14-
installRequirements
15-
16-
# https://github.com/descriptinc/audiotools/issues/101
17-
# incompatible protobuf versions.
18-
# PYDIR=python3.10
19-
# pyenv="${MY_DIR}/venv/lib/${PYDIR}/site-packages/google/protobuf/internal/"
20-
21-
# if [ ! -d ${pyenv} ]; then
22-
# echo "(parler-tts/install.sh): Error: ${pyenv} does not exist"
23-
# exit 1
24-
# fi
25-
26-
# curl -L https://raw.githubusercontent.com/protocolbuffers/protobuf/main/python/google/protobuf/internal/builder.py -o ${pyenv}/builder.py
14+
installRequirements

backend/python/parler-tts/protogen.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
source $(dirname $0)/../common/libbackend.sh
5+
6+
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
git+https://github.com/huggingface/parler-tts.git@8e465f1b5fcd223478e07175cb40494d19ffbe17
22
llvmlite==0.43.0
3-
numba==0.60.0
4-
git+https://github.com/descriptinc/audiotools
3+
numba==0.60.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
grpcio==1.67.0
2+
grpcio-tools==1.44.0
23
protobuf
34
certifi
45
llvmlite==0.43.0

0 commit comments

Comments
 (0)