Package: fuzzyocr
Version: 3.5.1+svn135-1
Severity: normal
Tags: patch
An running of a preprocessor of some scanset exits with an error.
In the default setting it is running of ppmtopgm.
In log/mail.info:
----
(!)SA error: FuzzyOcr: Error running preprocessor(ppmtopgm): /usr/bin/ppmtopgm
----
And in the debug output to log/FuzzyOcr.log
----
Exec : /usr/bin/ppmtopgm
Stdin : </var/lib/amavis/tmp/.spamassassintmp/pic.jpeg.pnm
Stdout: >
Stderr: >/var/lib/amavis/tmp/.spamassassintmp/prep.ppmtopgm.err
Saved pid: 1234
Elapsed [1234]: 0.018853 sec. (/usr/bin/ppmtopgm: exit 8)
Error running preprocessor(ppmtopgm): /usr/bin/ppmtopgm
Errors in Scanset "ocrad-decolorize"
Return code: 2048, Error:
Skipping scanset because of errors, trying next...
----
The reason is the redirection of the output into the unnamed file.
Patch correcting this problem is e.g.
=====
--- Preprocessor.pm.orig
+++ Preprocessor.pm
@@ -31,11 +31,12 @@
my ($self, $input) = @_;
my $tmpdir = FuzzyOcr::Config::get_tmpdir();
my $label = $self->{label};
+ my $output = undef;
if ($label eq "maketiff") {
$output = "$tmpdir/prep.$label.tif";
} else {
- my $output = "$tmpdir/prep.$label.out";
+ $output = "$tmpdir/prep.$label.out";
}
my $stderr = ">$tmpdir/prep.$label.err";
=====
After this patch fuzzyocr works perfectly.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]