Skip to content

Commit

Permalink
fix(parler-tts): pin protobuf (#3963)
Browse files Browse the repository at this point in the history
* fix(parler-tts): pin protobuf

Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>

* debug

Signed-off-by: Ettore Di Giacinto <[email protected]>

* Re-apply workaround

Signed-off-by: Ettore Di Giacinto <[email protected]>

---------

Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Oct 25, 2024
1 parent dbe7ac4 commit 3ad920b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ jobs:
run: |
make --jobs=5 --output-sync=target -C backend/python/parler-tts
make --jobs=5 --output-sync=target -C backend/python/parler-tts test
- name: Setup tmate session if tests fail
if: ${{ failure() }}
uses: mxschmitt/[email protected]
with:
detached: true
connect-timeout-seconds: 180
limit-access-to-actor: true

tests-openvoice:
runs-on: ubuntu-latest
Expand Down
16 changes: 15 additions & 1 deletion backend/python/parler-tts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,18 @@ if [ "x${BUILD_PROFILE}" == "xintel" ]; then
EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match"
fi

installRequirements

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
3 changes: 2 additions & 1 deletion backend/python/parler-tts/requirements-after.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
git+https://github.com/huggingface/parler-tts.git@8e465f1b5fcd223478e07175cb40494d19ffbe17
llvmlite==0.43.0
numba==0.60.0
numba==0.60.0
grpcio-tools==1.42.0
4 changes: 1 addition & 3 deletions backend/python/parler-tts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
grpcio==1.67.0
grpcio-tools==1.44.0
protobuf
certifi
llvmlite==0.43.0
llvmlite==0.43.0

0 comments on commit 3ad920b

Please sign in to comment.