From db63b46e656bea5e220e7ee05eedfeba3e884016 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 3 Sep 2020 18:01:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20ppn2ocr:=20Mention=20upgrading?= =?UTF-8?q?=20pip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Installing the ppn2ocr requirements fails when pip is not updated (see issue below), so mention the issue in the README. Quoting https://github.com/skvark/opencv-python#frequently-asked-questions: Q: Pip install fails with ModuleNotFoundError: No module named 'skbuild'? Since opencv-python version 4.3.0.*, manylinux1 wheels were replaced by manylinux2014 wheels. If your pip is too old, it will try to use the new source distribution introduced in 4.3.0.38 to manually build OpenCV because it does not know how to install manylinux2014 wheels. However, source build will also fail because of too old pip because it does not understand build dependencies in pyproject.toml. To use the new manylinux2014 pre-built wheels (or to build from source), your pip version must be >= 19.3. Please upgrade pip with pip install --upgrade pip. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b590fbe..dd14d30 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ ppn2ocr The `ppn2ocr` script produces a METS file with the best images for a given document in the State Library Berlin (SBB)'s digitized collection. -Install it, preferably in a venv: +Install it with an up-to-date pip (otherwise this will fail due to [a opencv-python-headless build failure](https://github.com/skvark/opencv-python#frequently-asked-questions)): ~~~ pip install -r ~/devel/my_ocrd_workflow/requirements-ppn2ocr.txt ~~~