List Info

Thread: what needs reloading to fix IO::File ?




what needs reloading to fix IO::File ?
user name
2008-03-13 22:29:02
I noticed that in my log

Mar 14 13:50:42 bilby amavis[30865]: (30865-01) (!!)TROUBLE
in check_mail:
mime_decode-1 FAILED: Can't locate object method
"binmode" via package
"IO::File" at
/usr/lib/perl5/site_perl/5.8.5/MIME/Body.pm line 437.

tried

 cpan> install IO:File
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Thu, 13 Mar 2008 20:32:28 GMT
Warning: Cannot install IO:File, don't know what it is.
Try the command

    i /IO:File/

to find objects with matching identifiers.


-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
country flaguser name
Slovenia
2008-03-14 06:15:02
Voytek,

> I noticed that in my log
>
> Mar 14 13:50:42 bilby amavis[30865]: (30865-01)
(!!)TROUBLE in check_mail:
> mime_decode-1 FAILED: Can't locate object method
"binmode" via package
> "IO::File" at
/usr/lib/perl5/site_perl/5.8.5/MIME/Body.pm line 437.

The IO::File comes in a IO-x.xx bundle and is one of the
core modules
(i.e. comes with the installation of perl). The 'binmode'
method is
not in IO-1.20, but it is present in IO-1.22 or later - I
don't know
when exactly it was introduced, the perl 5.6.2 seems not to
have it yet.
I would expect that your perl (5.8.5???) already has it -
perhaps there
is some old version of IO::File left behind.

> tried:
> cpan> install IO:File
> CPAN: Storable loaded ok
> Going to read /root/.cpan/Metadata
>   Database was generated on Thu, 13 Mar 2008 20:32:28
GMT
> Warning: Cannot install IO:File, don't know what it
is.

It is called IO::File, not IO:File.

h
ttp://www.wsection.com/cpan/authors/id/G/GB/GBARR/
http://cpan.uwinni
peg.ca/~gbarr/IO

  Mark

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
user name
2008-03-14 06:52:39
On Fri, March 14, 2008 10:15 pm, Mark Martinec wrote:

> It is called IO::File, not IO:File.

ooops...sorry..

thanks, Mark, now installed fine, hopefully the error will
go away...
(and, I've fixed most of the fuzzyOCR stuff, as well)


-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
user name
2008-03-14 17:30:41
On Sat, March 15, 2008 12:46 am, William Yodlowsky wrote:

>> ooops...sorry..
>>
>> thanks, Mark, now installed fine, hopefully the
error will go away...
>> (and, I've fixed most of the fuzzyOCR stuff, as
well)
>>
>
> Would you mind sharing what you've found with fuzzyocr?
 I have the same
> problem and it seems to be environment/path related but
haven't had the
> time to really find out what's going on.


ahem, at the risk of embarrassing myself, and/or, admitting
total
incompetence, sure, why not:

I never managed to successfully build the netpbm
executables, so, I didn't
have them, and, didn't really worry

I tried to build them, it again failed, used the
--keep-going, still failed
(obviously there is a reason, I'm missing something....)

anyhow, reviewing netpbm docs on sf.net I came across some
RPMs with ready
made executables...

so, I've installed the ready made executables from rpm...
hower, I think I'm still missing 'pam-something' and
'someother', they
seem to be in another RPM, that I aim to search for this
weekend

so, now I no longer get amavisd startup error listing all
netpbm
executables as absent

(somehow, I don't think that's what you were after...)





-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
country flaguser name
Slovenia
2008-03-14 19:06:22
Voytek,

> so, I've installed the ready made executables from
rpm...
> hower, I think I'm still missing 'pam-something' and
'someother', they
> seem to be in another RPM, that I aim to search for
this weekend

If you mean pamthreshold, it is from the next version of
netpbm.
For FuzzyOcr it is optional, but you need to tell it that
you don't have it. There is a setting in FuzzyOcr.cf where
you
can list what optional external programs you have. Comment
out
the ones that you do not have, e.g.:

# Include additional scanner/preprocessor commands here:
#
focr_bin_helper pnmnorm, pnminvert, ppmtopgm, pamtopnm,
pamditherbw
#focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm,
pamtopnm
#focr_bin_helper tesseract


  Mark

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
user name
2008-03-15 17:02:34
On Sat, March 15, 2008 11:06 am, Mark Martinec wrote:

>> so, I've installed the ready made executables from
rpm... hower, I think
>> I'm still missing 'pam-something' and 'someother',
they
>> seem to be in another RPM, that I aim to search for
this weekend
>
> If you mean pamthreshold, it is from the next version
of netpbm.
> For FuzzyOcr it is optional, but you need to tell it
that
> you don't have it. There is a setting in FuzzyOcr.cf
where you can list
> what optional external programs you have. Comment out
the ones that you do
> not have, e.g.:
>
> # Include additional scanner/preprocessor commands
here:
> #
> focr_bin_helper pnmnorm, pnminvert, ppmtopgm, pamtopnm,
pamditherbw
> #focr_bin_helper pnmnorm, pnminvert, pamthreshold,
ppmtopgm, pamtopnm
> #focr_bin_helper tesseract

thanks, Mark

yes, pamthreshold and tesseract

[10747] warn: FuzzyOcr: Cannot find executable for
pamthreshold
[10747] warn: FuzzyOcr: Cannot find executable for
tesseract

I'll try the next netpbm again, then recheck/remove/fix


-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
user name
2008-03-16 22:59:10
On Sat, March 15, 2008 11:06 am, Mark Martinec wrote:

> For FuzzyOcr it is optional, but you need to tell it
that
> you don't have it. There is a setting in FuzzyOcr.cf
where you can list
> what optional external programs you have. Comment out
the ones that you do
> not have, e.g.:
>
> # Include additional scanner/preprocessor commands
here:
> #
> focr_bin_helper pnmnorm, pnminvert, ppmtopgm, pamtopnm,
pamditherbw
> #focr_bin_helper pnmnorm, pnminvert, pamthreshold,
ppmtopgm, pamtopnm
> #focr_bin_helper tesseract


Mark,

thanks, Mark

hmmm, I'm still getting errors like:

----
# tail FuzzyOcr.log

2008-03-17 14:41:47 [14594] Error running
preprocessor(pamthreshold):
pamthreshold -simple -threshold 0.5
2008-03-17 14:41:47 [14594] Errors in Scanset
"ocrad-decolorize"
2008-03-17 14:41:47 [14594] Return code: 2048, Error:
save_execute: failed
to exec pamthreshold -simple -threshold 0.5: No such file or
directory at
/etc/mail/spamassassin/FuzzyOcr/Misc.pm line 173.

2008-03-17 14:41:47 [14594] Skipping scanset because of
errors, trying
next...
#

both pamthreshold and pamthreshold are remmed out
----
pwd
/etc/mail/spamassassin
grep tesseract FuzzyOcr.cf
# focr_bin_helper tesseract
grep pamthreshold FuzzyOcr.cf
# focr_bin_helper pnmnorm, pnminvert, pamthreshold,
ppmtopgm, pamtopnm

-----

unless I'm editing wrong conf file ?

and, I've stop/started amavisd


-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
user name
2008-03-17 09:32:55
On 3/16/08, Voytek Eymont wrote:
>
> On Sat, March 15, 2008 11:06 am, Mark Martinec wrote:
>
> > For FuzzyOcr it is optional, but you need to tell
it that
> > you don't have it. There is a setting in
FuzzyOcr.cf where you can list
> > what optional external programs you have. Comment
out the ones that you do
> > not have, e.g.:
> >
> > # Include additional scanner/preprocessor commands
here:
> > #
> > focr_bin_helper pnmnorm, pnminvert, ppmtopgm,
pamtopnm, pamditherbw
> > #focr_bin_helper pnmnorm, pnminvert, pamthreshold,
ppmtopgm, pamtopnm
> > #focr_bin_helper tesseract
>
>
> Mark,
>
> thanks, Mark
>
> hmmm, I'm still getting errors like:
>
> ----
> # tail FuzzyOcr.log
>
> 2008-03-17 14:41:47 [14594] Error running
preprocessor(pamthreshold):
> pamthreshold -simple -threshold 0.5
> 2008-03-17 14:41:47 [14594] Errors in Scanset
"ocrad-decolorize"
> 2008-03-17 14:41:47 [14594] Return code: 2048, Error:
save_execute: failed
> to exec pamthreshold -simple -threshold 0.5: No such
file or directory at
> /etc/mail/spamassassin/FuzzyOcr/Misc.pm line 173.
>
> 2008-03-17 14:41:47 [14594] Skipping scanset because of
errors, trying
> next...
> #
>
> both pamthreshold and pamthreshold are remmed out
> ----
> pwd
> /etc/mail/spamassassin
> grep tesseract FuzzyOcr.cf
> # focr_bin_helper tesseract
> grep pamthreshold FuzzyOcr.cf
> # focr_bin_helper pnmnorm, pnminvert, pamthreshold,
ppmtopgm, pamtopnm
>
> -----
>
> unless I'm editing wrong conf file ?
>
> and, I've stop/started amavisd
>
>
> --
> Voytek
>

In addition, there is a file that defines the scansets that
will be
used (FuzzyOcr.scansets). Consider commenting out scansets
that use
pamthreshold, e.g.:

## Inverted Ocrad scanset with decolorization
#scanset ocrad-decolorize-invert {
#    preprocessors = ppmtopgm, pamthreshold, pamtopnm
#    command = $ocrad
#    args = -s5 -i $input
#}

## Ocrad scanset with decolorization
#scanset ocrad-decolorize {
#    preprocessors = ppmtopgm, pamthreshold, pamtopnm
#    command = $ocrad
#    args = -s5 $input
#}

There is also a file called FuzzyOcr.preps that you might
want to explore.

I use Debian that uses an old version of netpbm. I apply a
total of 6
patches (in the order shown) that strip out functionality
that is not
supported by this old version. These are provided just for
reference.
All of these may not be applicable to your version of netpbm
(anywhere
from none - to possibly only the first three may apply), so
I'm not
necessarily suggesting you apply them.

http://www200.pair.com/mecham/
spam/FuzzyOcr-3.5.0-rc1.netpbm_less_than_10.34.patch
http://www200.pair.com/mecham
/spam/FuzzyOcr-3.5.0-rc1.netpbm_less_than_10.34.patch2
http://www200.pair.com/mecham/spa
m/FuzzyOcr-3.5.0-rc1.netpbm_less_than_10.34.p3
http://www200.pair.com/mecham/spam/gary.3.5.0
-rc1.old.netpbm.patch1
http://www200.pair.com/mecham/spam/gary.3.5.0
-rc1.old.netpbm.patch2
http://www200.pair.com/mecham/spam/gary.3.5.0
-rc1.old.netpbm.patch3

-- 
Gary V

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: what needs reloading to fix IO::File ?
user name
2008-03-17 19:16:15
On Tue, March 18, 2008 1:32 am, Gary V wrote:
> On 3/16/08, Voytek Eymont wrote:

>> On Sat, March 15, 2008 11:06 am, Mark Martinec
wrote:

> In addition, there is a file that defines the scansets
that will be
> used (FuzzyOcr.scansets). Consider commenting out
scansets that use
> pamthreshold, e.g.:
>
> ## Inverted Ocrad scanset with decolorization
> #scanset ocrad-decolorize-invert {
> #    preprocessors = ppmtopgm, pamthreshold, pamtopnm
> #    command = $ocrad
> #    args = -s5 -i $input
> #}
>
>
> ## Ocrad scanset with decolorization
> #scanset ocrad-decolorize {
> #    preprocessors = ppmtopgm, pamthreshold, pamtopnm
> #    command = $ocrad
> #    args = -s5 $input
> #}
>
>
> There is also a file called FuzzyOcr.preps that you
might want to
> explore.

thanks, Gary:
I've done the 3 steps above, and, I think I'm good, log
shows

===
2008-03-18 10:52:53 [27470] FuzzyOcr stopped, message got 9
points by
other FuzzyOcr tests (10.009>10).
2008-03-18 11:01:04 [27470] FuzzyOcr stopped, message got 9
points by
other FuzzyOcr tests (10.018>10).
===

what's the best way to get some stats on spam breakdown by
type of
rejection ?



-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-9]

about | contact  Other archives ( Real Estate discussion Medical topics )