Skip to content

Commit

Permalink
Fix EasyNMT, fasttext dependency installation problem on Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirozha1337 committed May 12, 2024
1 parent 1cbd6df commit b2bf317
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -16,7 +16,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install application
run: |
pip install wheel
pip install --no-deps EasyNMT==2.0.2
pip install -e .
- name: Check that package was installed successfully
run: |
Expand Down
12 changes: 8 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ faster-whisper==0.10.0
tqdm==4.56.0
ffmpeg-python==0.2.0
wheel==0.42.0
fasttext==0.9.2
pybind11==2.11.1
EasyNMT==2.0.2
langcodes==3.3.0
langcodes==3.3.0
transformers>=4.4,<5
torch>=1.6.0
numpy
nltk
sentencepiece
protobuf
EasyNMT==2.0.2
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
'faster-whisper',
'tqdm',
'ffmpeg-python',
'fasttext',
'EasyNMT',
'langcodes',
'transformers>=4.4,<5',
'torch>=1.6.0',
'numpy',
'nltk',
'sentencepiece',
'protobuf',
'EasyNMT',
],
description="Automatically generate and embed subtitles into your videos",
entry_points={
Expand Down

0 comments on commit b2bf317

Please sign in to comment.