Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] SWISH::Filter module not found

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Wed Oct 27 2010 - 03:37:51 GMT
Troy Wical wrote on 10/26/10 9:38 PM:
> FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0
> SWISH-E 2.4.5
> 
> Trying to index a url, but swish-e is having a hard time find the SWISH::Filter module. CPAN states it's installed though.
> 
> #############################################
> [root@ /]# swish-e -c /home/search/t2.conf -S prog
> Indexing Data Source: "External-Program"
> Indexing "spider.pl"
> External Program found: /usr/local/lib/swish-e/spider.pl
> Can't locate package SWISH::Filters::Base for @SWISH::Filters::xls2txt::ISA at /usr/local/lib/perl5/site_perl/5.8.8/SWISH/Filters/xls2txt.pm line 9.
> Can't locate package SWISH::Filters::Base for @SWISH::Filters::xls2txt::ISA at /usr/local/lib/perl5/site_perl/5.8.8/SWISH/Filters/xls2txt.pm line 9.
> Can't locate package SWISH::Filters::Base for @SWISH::Filters::xls2txt::ISA at /usr/local/lib/perl5/site_perl/5.8.8/SWISH/Filters/xls2txt.pm line 9.
> Can't locate package SWISH::Filters::Base for @SWISH::Filters::xls2txt::ISA at /usr/local/lib/perl5/site_perl/5.8.8/SWISH/Filters/xls2txt.pm line 15.
> Can't locate package SWISH::Filters::Base for @SWISH::Filters::xls2txt::ISA at /usr/local/lib/swish-e/perl/SWISH/Filter.pm line 1209.
> Can't locate package SWISH::Filters::Base for @SWISH::Filters::xls2txt::ISA at /usr/local/lib/swish-e/perl/SWISH/Filter.pm line 1250.
> Failed to find the SWISH::Filter module.  Only processing text/* content.
> Can't locate object method "new" via package "SWISH::Filters::Base" at /usr/local/lib/swish-e/perl/SWISH/Filter.pm line 493.
> 
> /usr/local/lib/swish-e/spider.pl: Reading parameters from 'default'
> ^C
> 
> cpan[1]> install SWISH::Filter
> CPAN: Storable loaded ok (v2.15)
> Going to read '/home/.cpan/Metadata'
>   Database was generated on Tue, 26 Oct 2010 16:32:41 GMT
> SWISH::Filter is up to date (0.15).
> #############################################
> 
> Any thoughts on this?
> 


you have the SWISH::Filter from CPAN and the SWISH::Filter from the swish-e
distribution both installed. That'll break things. One or the other should work.

The files in /usr/local/lib/swish-e/perl are the ones from the swish-e dist;
CPAN installs in whatever your @INC is set to (use perl -V).

The CPAN version is much more recent and has several optimizations, but the one
in the swish-e dist should work just fine.

-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Oct 26 23:37:55 2010