Skip to main content.
home | support | download

Back to List Archive

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

From: Troy Wical <troy(at)not-real.wical.com>
Date: Wed Oct 27 2010 - 04:06:42 GMT
Thanks for that. It's not the first time you've mentioned to me the issues of having modules installed from different areas. I edited spider.pl to point to the CPAN version and the errors are no more. I do get the following now though after it runs for a couple minutes, I believe it is not due to the page that is being crawled. Though, I've been wrong before.

#############################################
Warning: Unknown header line: 'ath-Name: http://type2.com/ezmlm-archives/index.cgi?list=type2&cmd=monthbydate&month=201009' from program spider.pl
err: External program failed to return required headers Path-Name:
#############################################

Thanks again. Troy

On Oct 26, 2010, at 9:37 PM, Peter Karman wrote:

> 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

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed Oct 27 00:06:45 2010