Package Details: ocrmypdf 16.2.0-1

Git Clone URL: https://aur.archlinux.org/ocrmypdf.git (read-only, click to copy)
Package Base: ocrmypdf
Description: A tool to add an OCR text layer to scanned PDF files, allowing them to be searched
Upstream URL: https://github.com/ocrmypdf/OCRmyPDF
Licenses: MPL2
Submitter: dreuter
Maintainer: fbrennan (pigmonkey)
Last Packager: pigmonkey
Votes: 109
Popularity: 1.70
First Submitted: 2014-01-27 11:36 (UTC)
Last Updated: 2024-04-19 19:30 (UTC)

Pinned Comments

fbrennan commented on 2023-05-12 22:54 (UTC)

The flag was invalid and has been removed with no action taken as no new version was released. There's nothing to do for this package; no new release has been made. Rebuild, as @eclairevoyant has said.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 22 Next › Last »

marco.righi commented on 2023-06-05 14:03 (UTC)

Script updated, it is necessary clean the cache. Added yay -Scc. Is there a solution to avoid yay provide questions? The answer yes could be good for each question without time waste.

#!/bin/bash
logfile=~/log/python3xRebuild.log
echo START $(date) |tee -a $logfile
PYDIRS=$(stat -c '%W %n' /usr/lib/python[3-9].* | sort -n | head -n -1 | awk '{ print $2 }')
    if [ -n "$PYDIRS" ]; then
      yay -Scc
      for d in $PYDIRS; do
        #echo "Found obsolete python directory $d, packages requiring rebuild:"
        for p in $(pacman -Qoq "$d"); do 
            command=$(echo yay -S $p --rebuildtree  --noconfirm  --rebuild)
            echo $command |tee -a $logfile
            eval $command
        done
      done
    fi

fbrennan commented on 2023-06-05 13:54 (UTC)

I pinned my answer to this, thanks for helping me with replying to users.

To remind everyone, as the wiki states clearly:

Warning: AUR helpers are not supported by Arch Linux. You should become familiar with the manual build process in order to be prepared to troubleshoot problems.

This package will (probably) reinstall with your AUR helper, but the command I use to check if it's actually broken is makepkg --cleanbuild then pacman -U ocrmypdf-14.2.0-1-any.tar.zst.

eclairevoyant commented on 2023-06-05 13:29 (UTC)

did you read the answer to the previous comment where this exact error came up? rebuild the package.

marco.righi commented on 2023-06-05 12:42 (UTC) (edited on 2023-06-05 13:12 (UTC) by marco.righi)

Ok, the result is a useful package unusable. By using this script SOMETIME the problem is resolved.

#!/bin/bash
logfile=~/log/python3xRebuild.log
echo START $(date) |tee -a $logfile
PYDIRS=$(stat -c '%W %n' /usr/lib/python[3-9].* | sort -n | head -n -1 | awk '{ print $2 }')
    if [ -n "$PYDIRS" ]; then
      for d in $PYDIRS; do
        #echo "Found obsolete python directory $d, packages requiring rebuild:"
        for p in $(pacman -Qoq "$d"); do 
            command=$(echo yay -S $p --rebuildtree  --noconfirm)
            echo $command |tee -a $logfile
            eval $command
        done
      done
    fi

Do you have a definitive solution?

eclairevoyant commented on 2023-06-05 12:20 (UTC)

read prior comments, it's not a bug

marco.righi commented on 2023-06-05 12:12 (UTC) (edited on 2023-06-05 12:13 (UTC) by marco.righi)

New bug?

Traceback (most recent call last):
  File "/usr/bin/ocrmypdf", line 5, in <module>
    from ocrmypdf.__main__ import run
ModuleNotFoundError: No module named 'ocrmypdf'

On

lsb_release -a
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:    23.0.0
Codename:   UltimaThule

eclairevoyant commented on 2023-05-22 01:31 (UTC)

Also @Ramalama, re: "Building that aur package leads anyway to errors already." It doesn't, I just built it fine today.

fbrennan commented on 2023-05-21 22:22 (UTC)

No, we cannot just randomly remove dependencies required upstream.

https://github.com/ocrmypdf/OCRmyPDF/blob/de909fb99ae13db8b7e9389f568c69ad92ee47e1/pyproject.toml#L20

Do not rely on yay when running into failed builds. Use makepkg, yay is an AUR helper, and when it fails, its help ought to end (in my opinion).

eclairevoyant commented on 2023-05-21 18:11 (UTC) (edited on 2023-05-21 18:12 (UTC) by eclairevoyant)

Please read the prior comments... Anytime you see this error, you need to rebuild the package that it's erroring on. And it's not even this package.