Skip to content

Commit

Permalink
fix opencv import error for numpy 2.0 (#13105)
Browse files Browse the repository at this point in the history
* fix opencv import error for numpy 2.0

* update requirements.txt
  • Loading branch information
GreatV authored Jun 23, 2024
1 parent 6d5f998 commit 4336771
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install "paddlepaddle==2.5"
pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html
pip install -e .
- name: Test with pytest
run: |
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ dependencies = [
"tqdm",
"numpy<2.0",
"rapidfuzz",
"opencv-python<=4.6.0.66",
"opencv-contrib-python<=4.6.0.66",
"opencv-python",
"opencv-contrib-python",
"cython",
"Pillow>=10.0.0",
"Pillow",
"pyyaml",
"python-docx",
"beautifulsoup4",
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ lmdb
tqdm
numpy<2.0
rapidfuzz
opencv-python<=4.6.0.66
opencv-contrib-python<=4.6.0.66
opencv-python
opencv-contrib-python
cython
Pillow>=10.0.0
Pillow
pyyaml
requests

0 comments on commit 4336771

Please sign in to comment.