ocrmypdf broken again

After successfully having it working and ocr-ing most of my old documents is broken again. There is 2 versions on the AUR.
ocrmypdf-py3 9.7.1-1 installs but give this error:

$ ocrmypdf
Traceback (most recent call last):
  File "/usr/bin/ocrmypdf", line 33, in <module>
    sys.exit(load_entry_point('ocrmypdf==9.7.1', 'console_scripts', 'ocrmypdf')())
  File "/usr/bin/ocrmypdf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/ocrmypdf/__init__.py", line 18, in <module>
    from . import helpers, hocrtransform, leptonica, pdfa, pdfinfo
  File "/usr/lib/python3.8/site-packages/ocrmypdf/hocrtransform.py", line 37, in <module>
    from reportlab.lib.units import inch
ModuleNotFoundError: No module named 'reportlab'

The other one and most recent version
ocrmypdf 10.3.1-1 wont install giving dependency errors I don't understand. With the other one uninstalled of couse.

conflicting files:
- python-pdfminer: /usr/bin/dumppdf.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/bin/pdf2txt.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__init__.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/__init__.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/__init__.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/arcfour.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/arcfour.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/ascii85.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/ascii85.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/ccitt.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/ccitt.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/cmapdb.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/cmapdb.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/converter.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/converter.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/encodingdb.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/encodingdb.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/fontmetrics.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/fontmetrics.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/glyphlist.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/glyphlist.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/high_level.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/high_level.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/image.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/image.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/jbig2.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/jbig2.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/latin_enc.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/latin_enc.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/layout.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/layout.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/lzw.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/lzw.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfcolor.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfcolor.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfdevice.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfdevice.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfdocument.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfdocument.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdffont.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdffont.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfinterp.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfinterp.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfpage.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfpage.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfparser.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdfparser.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdftypes.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/pdftypes.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/psparser.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/psparser.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/rijndael.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/rijndael.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/runlength.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/runlength.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/settings.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/settings.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/utils.cpython-38.opt-1.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/__pycache__/utils.cpython-38.pyc already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/arcfour.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/ascii85.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/ccitt.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78ms-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/78ms-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/83pv-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/83pv-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/90ms-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/90ms-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/90msp-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/90msp-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/90pv-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/90pv-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Add-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Add-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Add-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Add-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/B5pc-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/B5pc-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/CNS-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/CNS-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/CNS1-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/CNS1-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/CNS2-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/CNS2-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/ETHK-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/ETHK-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/ETen-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/ETen-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/ETenms-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/ETenms-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Ext-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Ext-RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Ext-RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Ext-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GB-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GB-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GB-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GB-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBK-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBK-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBK2K-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBK2K-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBKp-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBKp-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBT-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBT-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBT-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBT-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBTpc-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBTpc-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBpc-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/GBpc-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKdla-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKdla-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKdlb-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKdlb-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKgccs-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKgccs-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKm314-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKm314-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKm471-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKm471-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKscs-B5-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/HKscs-B5-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Hankaku-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Hankaku-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Hiragana-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Hiragana-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSC-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSC-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSC-Johab-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSC-Johab-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSCms-UHC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSCms-UHC-HW-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSCms-UHC-HW-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSCms-UHC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSCpc-EUC-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/KSCpc-EUC-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Katakana-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Katakana-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/NWP-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/NWP-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/RKSJ-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/RKSJ-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Roman-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/Roman-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UCS2-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UCS2-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UTF16-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UTF16-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UTF8-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniCNS-UTF8-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UCS2-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UCS2-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UTF16-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UTF16-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UTF8-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniGB-UTF8-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UCS2-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UCS2-HW-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UCS2-HW-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UCS2-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UTF16-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UTF16-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UTF8-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS-UTF8-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS2004-UTF16-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS2004-UTF16-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS2004-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS2004-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS2004-UTF8-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJIS2004-UTF8-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJISX0213-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJISX0213-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJISX02132004-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniJISX02132004-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UCS2-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UCS2-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UTF16-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UTF16-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UTF32-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UTF32-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UTF8-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/UniKS-UTF8-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/WP-Symbol-H.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/WP-Symbol-V.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/to-unicode-Adobe-CNS1.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/to-unicode-Adobe-GB1.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/to-unicode-Adobe-Japan1.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmap/to-unicode-Adobe-Korea1.pickle.gz already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/cmapdb.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/converter.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/encodingdb.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/fontmetrics.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/glyphlist.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/high_level.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/image.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/jbig2.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/latin_enc.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/layout.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/lzw.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdfcolor.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdfdevice.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdfdocument.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdffont.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdfinterp.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdfpage.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdfparser.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/pdftypes.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/psparser.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/rijndael.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/runlength.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/settings.py already exists in filesystem (owned by python-pdfminer.six)
- python-pdfminer: /usr/lib/python3.8/site-packages/pdfminer/utils.py already exists in filesystem (owned by python-pdfminer.six)

Any advise on how to having working?

My system:

inxi -Fx
System:    Host: joel-AMDRYZEN Kernel: 5.6.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 
           Desktop: KDE Plasma 5.19.3 Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASRock model: X570 Steel Legend serial: <root required> UEFI: American Megatrends 
           v: P2.20 date: 11/26/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 115233 
           Speed: 2199 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2200 2: 2200 3: 2193 4: 2199 5: 2200 6: 2189 
           7: 2200 8: 2200 9: 2200 10: 2197 11: 2199 12: 2195 13: 2198 14: 2200 15: 2200 16: 2200 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] 
           vendor: XFX Pine driver: amdgpu v: kernel bus ID: 06:00.0 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu FAILED: ati unloaded: modesetting,radeon 
           resolution: 2560x1440~144Hz 
           OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.36.0 5.6.19-2-MANJARO LLVM 10.0.0) 
           v: 4.6 Mesa 20.1.3 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio driver: snd_hda_intel v: kernel 
           bus ID: 06:00.1 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASRock driver: snd_hda_intel 
           v: kernel bus ID: 12:00.4 
           Sound Server: ALSA v: k5.6.19-2-MANJARO 
Network:   Device-1: Intel I211 Gigabit Network vendor: ASRock driver: igb v: 5.6.0-k port: e000 bus ID: 0b:00.0 
           IF: enp11s0 state: down mac: a8:a1:59:17:c3:18 
           Device-2: Intel Wireless-AC 9260 driver: iwlwifi v: kernel port: e000 bus ID: 0d:00.0 
           IF: wlp13s0 state: up mac: d8:3b:bf:4d:04:8b 
           IF-ID-1: virbr0 state: down mac: 52:54:00:85:b2:e3 
           IF-ID-2: virbr0-nic state: down mac: 52:54:00:85:b2:e3 
Drives:    Local Storage: total: 2.29 TiB used: 454.26 GiB (19.4%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB 
           ID-2: /dev/sda vendor: Western Digital model: WD20EZAZ-00GGJB0 size: 1.82 TiB 
Partition: ID-1: / size: 459.50 GiB used: 174.83 GiB (38.0%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 56.6 C mobo: N/A gpu: amdgpu temp: 58 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 739 
Info:      Processes: 349 Uptime: 1h 53m Memory: 15.57 GiB used: 2.22 GiB (14.2%) Init: systemd Compilers: 

It looks like you need to remove the package python-pdfminer.six

Since I cant find a corresponding file/package
(there is python-pdfminer in repos)
I am going to guess this is a regular 'used sudo with pip' mistake.

No, it is/was a package at one point. If it was a pip issue it wouldn't be owned by another package.

1 Like

oh right. it wouldnt cite 'owned by..' :stuck_out_tongue_winking_eye:

makes sense.

Removing python-pdfminer.six fixed the problem of able to install the ocrmypdf 10.3.1-1 but is giving me I think the same first error.

$ ocrmypdf
Traceback (most recent call last):
  File "/usr/bin/ocrmypdf", line 33, in <module>
    sys.exit(load_entry_point('ocrmypdf==10.3.1', 'console_scripts', 'ocrmypdf')())
  File "/usr/bin/ocrmypdf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/ocrmypdf/__init__.py", line 21, in <module>
    from ocrmypdf import helpers, hocrtransform, leptonica, pdfa, pdfinfo
  File "/usr/lib/python3.8/site-packages/ocrmypdf/hocrtransform.py", line 41, in <module>
    from reportlab.lib.colors import black, cyan, magenta, red
ModuleNotFoundError: No module named 'reportlab'

Crazy timing here, I just learned about OCRmyPDF today and built version 10.3.1-1 via pamac only to have the same error.

I resolved it by following the advice on this stack overflow page.

Most of the times errors like this are caused by an broken package, either in the package it self or in one of it's dependencies.

The best way to resolve such a issue is to force-reinstall the package, it will reinstall the package and its dependencies potentially repairing the package.

To force-reinstall reportlab use:

pip install --upgrade --force-reinstall reportlab

After doing this and then installing tesseract-ocr-eng I'm able to run ocrmypdf without any errors.

1 Like

Thank you for the reply. I did as you suggested and it did not worked. But it gave me less errors. I also read something on Stack overflow that it may has to do with python version error. But I am not sure.

pip install --upgrade --force-reinstall ocrmypdf
Defaulting to user installation because normal site-packages is not writeable
Collecting ocrmypdf
  Downloading ocrmypdf-10.3.1-py35-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 1.6 MB/s 
Collecting Pillow>=7.0.0
  Downloading Pillow-7.2.0-cp38-cp38-manylinux1_x86_64.whl (2.2 MB)
     |████████████████████████████████| 2.2 MB 7.8 MB/s 
Collecting pdfminer.six<=20200720,>=20191110
  Downloading pdfminer.six-20200720-py3-none-any.whl (5.6 MB)
     |████████████████████████████████| 5.6 MB 7.8 MB/s 
Collecting pikepdf<2,>=1.14.0
  Downloading pikepdf-1.17.3-cp38-cp38-manylinux2010_x86_64.whl (10.1 MB)
     |████████████████████████████████| 10.1 MB 8.9 MB/s 
Collecting cffi>=1.9.1
  Downloading cffi-1.14.1-cp38-cp38-manylinux1_x86_64.whl (409 kB)
     |████████████████████████████████| 409 kB 6.5 MB/s 
Collecting pluggy>=0.13.0
  Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting reportlab>=3.3.0
  Downloading reportlab-3.5.46-cp38-cp38-manylinux2010_x86_64.whl (2.6 MB)
     |████████████████████████████████| 2.6 MB 10.9 MB/s 
Collecting tqdm>=4
  Downloading tqdm-4.48.0-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 6.5 MB/s 
Collecting coloredlogs>=14.0
  Downloading coloredlogs-14.0-py2.py3-none-any.whl (43 kB)
     |████████████████████████████████| 43 kB 3.5 MB/s 
Collecting img2pdf<0.4,>=0.3.0
  Downloading img2pdf-0.3.6.tar.gz (91 kB)
     |████████████████████████████████| 91 kB 6.0 MB/s 
Collecting cryptography
  Downloading cryptography-3.0-cp35-abi3-manylinux2010_x86_64.whl (2.7 MB)
     |████████████████████████████████| 2.7 MB 2.9 MB/s 
Collecting chardet; python_version > "3.0"
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 2.4 MB/s 
Collecting sortedcontainers
  Downloading sortedcontainers-2.2.2-py2.py3-none-any.whl (29 kB)
Collecting lxml>=4.0
  Downloading lxml-4.5.2-cp38-cp38-manylinux1_x86_64.whl (5.4 MB)
     |████████████████████████████████| 5.4 MB 1.5 MB/s 
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 4.9 MB/s 
Collecting humanfriendly>=7.1
  Downloading humanfriendly-8.2-py2.py3-none-any.whl (86 kB)
     |████████████████████████████████| 86 kB 5.5 MB/s 
Collecting six>=1.4.1
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Using legacy setup.py install for img2pdf, since package 'wheel' is not installed.
Installing collected packages: Pillow, pycparser, cffi, six, cryptography, chardet, sortedcontainers, pdfminer.six, lxml, pikepdf, pluggy, reportlab, tqdm, humanfriendly, coloredlogs, img2pdf, ocrmypdf
    Running setup.py install for img2pdf ... done
Successfully installed Pillow-7.2.0 cffi-1.14.1 chardet-3.0.4 coloredlogs-14.0 cryptography-3.0 humanfriendly-8.2 img2pdf-0.3.6 lxml-4.5.2 ocrmypdf-10.3.1 pdfminer.six-20200720 pikepdf-1.17.3 pluggy-0.13.1 pycparser-2.20 reportlab-3.5.46 six-1.15.0 sortedcontainers-2.2.2 tqdm-4.48.0
[joel@joel-AMDRYZEN ~]$ sudo pacman -Syu tesseract tesseract-data-eng tesseract-data-spa
[sudo] password for joel: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: tesseract-4.1.1-2 is up to date -- reinstalling
warning: tesseract-data-eng-2:4.0.0-1 is up to date -- reinstalling
warning: tesseract-data-spa-2:4.0.0-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) tesseract-4.1.1-2  tesseract-data-eng-2:4.0.0-1  tesseract-data-spa-2:4.0.0-1

Total Installed Size:  54.74 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring                                           [#########################################] 100%
(3/3) checking package integrity                                         [#########################################] 100%
(3/3) loading package files                                              [#########################################] 100%
(3/3) checking for file conflicts                                        [#########################################] 100%
(3/3) checking available disk space                                      [#########################################] 100%
:: Processing package changes...
(1/3) reinstalling tesseract                                             [#########################################] 100%
You must install one of tesseract-data-* packages or whole tesseract-data group
(2/3) reinstalling tesseract-data-eng                                    [#########################################] 100%
(3/3) reinstalling tesseract-data-spa                                    [#########################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[joel@joel-AMDRYZEN ~]$ ocrmypdf
Traceback (most recent call last):
  File "/home/joel/.local/bin/ocrmypdf", line 5, in <module>
    from ocrmypdf.__main__ import run
  File "/home/joel/.local/lib/python3.8/site-packages/ocrmypdf/__init__.py", line 21, in <module>
    from ocrmypdf import helpers, hocrtransform, leptonica, pdfa, pdfinfo
  File "/home/joel/.local/lib/python3.8/site-packages/ocrmypdf/pdfinfo/__init__.py", line 19, in <module>
    from ocrmypdf.pdfinfo.info import Colorspace, Encoding, PdfInfo
  File "/home/joel/.local/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 37, in <module>
    from ocrmypdf.pdfinfo.layout import get_page_analysis, get_text_boxes
  File "/home/joel/.local/lib/python3.8/site-packages/ocrmypdf/pdfinfo/layout.py", line 29, in <module>
    from pdfminer.pdfdocument import PDFTextExtractionNotAllowed
ImportError: cannot import name 'PDFTextExtractionNotAllowed' from 'pdfminer.pdfdocument' (/home/joel/.local/lib/python3.8/site-packages/pdfminer/pdfdocument.py)

It looks like you did pip install --upgrade --force-reinstall ocrmypdf instead of pip install --upgrade --force-reinstall reportlab. What solved my problem was using pip to force-reinstall the reportlab package just as it was mentioned in the StackOverflow post. This resolved the ModuleNotFoundError that was happening on the last line of the error.

Based on the new error output it seems to be running a new ocrmypdf located at /home/joel/.local/bin/ocrmypdf which was probably just installed by pip rather than the one at /usr/bin/ocrmypdf

Try running

pip uninstall ocrmypdf

to uninstall the copy that you just installed from pip, and then try

which ocrmypdf

to check if it's now using the version at /usr/bin/ocrmypdf that was installed with pamac or pacman. Then try running it again to see if you get the original error where it's ending with ModuleNotFoundError: No module named 'reportlab'

This is where

pip install --upgrade --force-reinstall reportlab

solved the problem for me.

Hopefully that helps!

Thank you for your reply. It did removed the ModuleNotFoundError: No module named 'reportlab' error, but sadly it did not solved the issue. I was hoping since I have tried other programs and no other program compares to ocrmypdf.

$ ocrmypdf
Traceback (most recent call last):
  File "/usr/bin/ocrmypdf", line 33, in <module>
    sys.exit(load_entry_point('ocrmypdf==10.3.1', 'console_scripts', 'ocrmypdf')())
  File "/usr/bin/ocrmypdf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/ocrmypdf/__init__.py", line 21, in <module>
    from ocrmypdf import helpers, hocrtransform, leptonica, pdfa, pdfinfo
  File "/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/__init__.py", line 19, in <module>
    from ocrmypdf.pdfinfo.info import Colorspace, Encoding, PdfInfo
  File "/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 37, in <module>
    from ocrmypdf.pdfinfo.layout import get_page_analysis, get_text_boxes
  File "/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/layout.py", line 29, in <module>
    from pdfminer.pdfdocument import PDFTextExtractionNotAllowed
ImportError: cannot import name 'PDFTextExtractionNotAllowed' from 'pdfminer.pdfdocument' (/home/joel/.local/lib/python3.8/site-packages/pdfminer/pdfdocument.py)

I started a VM with a fresh install and your solution was needed and it worked. So I decided to uninstall most of the packages the app install and build to see if reinstalling those dependencies solved the problem but it didn't. It did change a little the error message I think.

$ ocrmypdf
Traceback (most recent call last):
  File "/usr/bin/ocrmypdf", line 33, in <module>
    sys.exit(load_entry_point('ocrmypdf==10.3.1', 'console_scripts', 'ocrmypdf')())
  File "/usr/bin/ocrmypdf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/ocrmypdf/__init__.py", line 21, in <module>
    from ocrmypdf import helpers, hocrtransform, leptonica, pdfa, pdfinfo
  File "/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/__init__.py", line 19, in <module>
    from ocrmypdf.pdfinfo.info import Colorspace, Encoding, PdfInfo
  File "/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 37, in <module>
    from ocrmypdf.pdfinfo.layout import get_page_analysis, get_text_boxes
  File "/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/layout.py", line 29, in <module>
    from pdfminer.pdfdocument import PDFTextExtractionNotAllowed
ImportError: cannot import name 'PDFTextExtractionNotAllowed' from 'pdfminer.pdfdocument' (/home/joel/.local/li8/site-packages/pdfminer/pdfdocument.py)

Dang, we're outside of my knowledge now, sorry man :frowning:

Hopefully someone knows how to resolve that ImportError for you

So I found more information about the issue at Github and AUR. If someone more savvy than me can look there and help me with recommending an appropriate fix I'll greatly appreciated.
It recommends to:

downgrade the community python-pdfminer package to the previous version
How do I do that?

I also had issues with the current python-reportlab package in Manjaro, but using the one from unstable branch fixed the issues I had.

Me, too. I could fix ocrmypdf by forcing a re-installation of pillow and reportlab with pip:

sudo pip install --upgrade --force-reinstall pillow
sudo pip install --upgrade --force-reinstall reportlab

Both gave an import error before. Thanks arcanis for providing the link.

Some month ago I also had some major issues with ocrmypdf on manjaro ...
Ocrmypdf also offers an official docker image including all dependencies etc. I started to use the docker version and had no problems anymore.

Forum kindly sponsored by