You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rob Mangiafico <rm...@lexiconn.com> on 2006/08/15 18:55:53 UTC

FuzzyOCR error on processing gif sample file

Downloaded and installed the latest FuzzyOCR 2.1c

Ran the tests and the jpg and png ones worked fine, but for the gif sample 
I received:

spamassassin -t <ocr-gif.eml
giftopnm: error reading magic number
(null): EOF / read error reading magic number
Broken pipe

I have all the required files in place, any ideas? Other than that the 
plugin looks good so far. Thanks.

Rob


Re: FuzzyOCR install issues

Posted by decoder <de...@own-hero.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

lists@zeta.net wrote:
> Ok,
>
> I installed libjpeg-devel, libpng-devel, and libtiff-devel, then I
> DL and compiled netpbm-10.34 from source.  it all went well, and
> now I have all 3 of those convertor executables on my system.  i
> then ran some tests on your sample mails.
>
> the gif sample works great.  - exactly like in your README file.
>
> the png sample gives me this error: /usr/local/netpbm/bin/pngtopnm:
> symbol lookup error: /usr/local/netpbm/bin/pngtopnm: undefined
> symbol: pnm_allocrow ERROR pnm.c L213: read
>
> and the jpeg sample gives me this error: jpegtopnm: WRITING PPM
> FILE /usr/local/netpbm/bin/jpegtopnm: symbol lookup error:
> /usr/local/netpbm/bin/jpegtopnm: undefined symbol: pnm_allocrow
> ERROR pnm.c L213: read
>
>
> any ideas?
>
> Thanks, Devin
>
>
> On Aug 15, 2006, at 4:03 PM, lists@zeta.net wrote:
>
>> Chris,
>>
>> I am in the process of installing and testing FuzzyOcr, but i am
>> having some issues with netpbm. I installed netpbm via yum and
>> have version netpbm-10.25-2.EL4.2 installed now.  the problem is
>> that giftopnm, jpegtopnm, and pngtopnm are nowhere to be found on
>> the system.
>>
>> any suggestions?  I'm on RHEL 4.1
>>
>> Thanks, Devin
>>
>>
>>
>>
>

You are probably missing more dependencies, like libpnm.

The symbols missing here are in the pnm library :)

Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE4tCvJQIKXnJyDxURAgJkAJ9ow3ghEKwua6+EASexASN/TPKQeQCgtrPi
gTvtiwEo9saVolu1McOH8Zs=
=W5YY
-----END PGP SIGNATURE-----


Re: FuzzyOCR install issues

Posted by li...@zeta.net.
Ok,

I installed libjpeg-devel, libpng-devel, and libtiff-devel, then I DL  
and compiled netpbm-10.34 from source.  it all went well, and now I  
have all 3 of those convertor executables on my system.  i then ran  
some tests on your sample mails.

the gif sample works great.  - exactly like in your README file.

the png sample gives me this error:
/usr/local/netpbm/bin/pngtopnm: symbol lookup error: /usr/local/ 
netpbm/bin/pngtopnm: undefined symbol: pnm_allocrow
ERROR pnm.c L213: read

and the jpeg sample gives me this error:
jpegtopnm: WRITING PPM FILE
/usr/local/netpbm/bin/jpegtopnm: symbol lookup error: /usr/local/ 
netpbm/bin/jpegtopnm: undefined symbol: pnm_allocrow
ERROR pnm.c L213: read


any ideas?

Thanks,
Devin


On Aug 15, 2006, at 4:03 PM, lists@zeta.net wrote:

> Chris,
>
> I am in the process of installing and testing FuzzyOcr, but i am  
> having some issues with netpbm.
> I installed netpbm via yum and have version netpbm-10.25-2.EL4.2  
> installed now.  the problem
> is that giftopnm, jpegtopnm, and pngtopnm are nowhere to be found  
> on the system.
>
> any suggestions?  I'm on RHEL 4.1
>
> Thanks,
> Devin
>
>
>
>


Re: FuzzyOCR install issues

Posted by li...@zeta.net.
Well,

I finally got everything working after realizing that there is a  
RHEL4 package called netpbm-progs.  So, i deleted everything i  
installed from source, and installed all of the rpms instead.  No  
more errors.  oddly enough, I only find 2 spam words in the sample  
jpeg mail, as opposed to 4 in your README file.

Question:

there is the "focr_autodisable_score" parameter to skip FuzzyOcr if  
there are already enough points.  The problem is that FuzzyOcr runs  
very early in the chain, and hence this feature is unusable.  How can  
I tell SA to run FuzzyOcr later or last?

Thanks,
Devin

FuzzyOCR install issues

Posted by li...@zeta.net.
Chris,

I am in the process of installing and testing FuzzyOcr, but i am  
having some issues with netpbm.
I installed netpbm via yum and have version netpbm-10.25-2.EL4.2  
installed now.  the problem
is that giftopnm, jpegtopnm, and pngtopnm are nowhere to be found on  
the system.

any suggestions?  I'm on RHEL 4.1

Thanks,
Devin





Re: FuzzyOCR error on processing gif sample file

Posted by Rob Mangiafico <rm...@lexiconn.com>.
On Tue, 15 Aug 2006, Rob Mangiafico wrote:
> > >>> Downloaded and installed the latest FuzzyOCR 2.1c
> > >>>
> > >>> Ran the tests and the jpg and png ones worked fine, but for the
> > >>> gif sample I received:
> > >>>
> > >>> spamassassin -t <ocr-gif.eml giftopnm: error reading magic
> > >>> number (null): EOF / read error reading magic number Broken
> > >>> pipe
> > Your netpbm seems very old, I am using 10.34. This could be the cause,
> > try the newest version, though I can't guarrantee that this is the
> > cause. If that doesn't work, try saving the gif image from the
> > ocr-gif.eml sample and run the commands manually over the file to see
> > which step fails.
> 
> Thanks. I removed the RHEL rpm for netpbm, installed 10.26 from source 
> (10.34 did not like RHEL 3 OS it seems) but still have issues with the gif 
> file. If anyone has a working system for RHEL 3 (centOS 3) and the new OCR 
> plugin, please post how you got it working. Thanks, and thanks for a great 
> plugin.

FYI, I figured this problem out. I installed netpbm to /usr/local/netpbm/ 
and gocr was not able to find all the files easily. I reinstalled netpbm 
to just /usr/local, recompiled gocr, and it works for the gifs now without 
a problem.  :)

Rob


Re: FuzzyOCR error on processing gif sample file

Posted by Rob Mangiafico <rm...@lexiconn.com>.
On Tue, 15 Aug 2006, decoder wrote:
> Rob Mangiafico wrote:
> > On Tue, 15 Aug 2006, decoder wrote:
> >> Rob Mangiafico wrote:
> >>> Downloaded and installed the latest FuzzyOCR 2.1c
> >>>
> >>> Ran the tests and the jpg and png ones worked fine, but for the
> >>> gif sample I received:
> >>>
> >>> spamassassin -t <ocr-gif.eml giftopnm: error reading magic
> >>> number (null): EOF / read error reading magic number Broken
> >>> pipe
> Your netpbm seems very old, I am using 10.34. This could be the cause,
> try the newest version, though I can't guarrantee that this is the
> cause. If that doesn't work, try saving the gif image from the
> ocr-gif.eml sample and run the commands manually over the file to see
> which step fails.

Thanks. I removed the RHEL rpm for netpbm, installed 10.26 from source 
(10.34 did not like RHEL 3 OS it seems) but still have issues with the gif 
file. If anyone has a working system for RHEL 3 (centOS 3) and the new OCR 
plugin, please post how you got it working. Thanks, and thanks for a great 
plugin.

Rob


Re: FuzzyOCR error on processing gif sample file

Posted by decoder <de...@own-hero.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob Mangiafico wrote:
> On Tue, 15 Aug 2006, decoder wrote:
>> Rob Mangiafico wrote:
>>> Downloaded and installed the latest FuzzyOCR 2.1c
>>>
>>> Ran the tests and the jpg and png ones worked fine, but for the
>>> gif sample I received:
>>>
>>> spamassassin -t <ocr-gif.eml giftopnm: error reading magic
>>> number (null): EOF / read error reading magic number Broken
>>> pipe
>>>
>>> I have all the required files in place, any ideas? Other than
>>> that the plugin looks good so far. Thanks.
>>>
>>> Rob
>>>
>> Hrm, I just ran the same command on the same file and it all
>> worked fine.
>>
>> Can you please tell me the versions of your toolchain? (giflib,
>> netpbm, gocr)
>
> RHEL 3.8
>
> rpm -q netpbm netpbm-9.24-11.30.4
>
> rpm -q libungif libungif-4.1.0-15.el3.3
>
> from source: giflib-4.1.4.tar.gz gocr-0.40.tar.gz
>
> Rob
>
>
Your netpbm seems very old, I am using 10.34. This could be the cause,
try the newest version, though I can't guarrantee that this is the
cause. If that doesn't work, try saving the gif image from the
ocr-gif.eml sample and run the commands manually over the file to see
which step fails.


Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE4gZMJQIKXnJyDxURAiOlAJ9UPBiIjxM8W3d/py/kkUKq8U892ACfWtLC
vY4kZ6WayJxURnwdSbCp1aY=
=5d3Z
-----END PGP SIGNATURE-----


Re: FuzzyOCR error on processing gif sample file

Posted by Rob Mangiafico <rm...@lexiconn.com>.
On Tue, 15 Aug 2006, decoder wrote:
> Rob Mangiafico wrote:
> > Downloaded and installed the latest FuzzyOCR 2.1c
> >
> > Ran the tests and the jpg and png ones worked fine, but for the gif
> > sample I received:
> >
> > spamassassin -t <ocr-gif.eml giftopnm: error reading magic number
> > (null): EOF / read error reading magic number Broken pipe
> >
> > I have all the required files in place, any ideas? Other than that
> > the plugin looks good so far. Thanks.
> >
> > Rob
> >
> 
> Hrm, I just ran the same command on the same file and it all worked fine.
> 
> Can you please tell me the versions of your toolchain? (giflib,
> netpbm, gocr)

RHEL 3.8

rpm -q netpbm
netpbm-9.24-11.30.4

rpm -q libungif
libungif-4.1.0-15.el3.3

from source:
giflib-4.1.4.tar.gz
gocr-0.40.tar.gz

Rob



Re: FuzzyOCR error on processing gif sample file

Posted by decoder <de...@own-hero.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob Mangiafico wrote:
> Downloaded and installed the latest FuzzyOCR 2.1c
>
> Ran the tests and the jpg and png ones worked fine, but for the gif
> sample I received:
>
> spamassassin -t <ocr-gif.eml giftopnm: error reading magic number
> (null): EOF / read error reading magic number Broken pipe
>
> I have all the required files in place, any ideas? Other than that
> the plugin looks good so far. Thanks.
>
> Rob
>

Hrm, I just ran the same command on the same file and it all worked fine.

Can you please tell me the versions of your toolchain? (giflib,
netpbm, gocr)


Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE4f6QJQIKXnJyDxURAstWAJ9jNKo1PgG12UiTvJUGB1B5f9mOwgCdHH+1
FkAzN8ryJODHnmLQbiH+PLk=
=uUvX
-----END PGP SIGNATURE-----