[BangPypers] Harvestman error

Jeffrey Jose jeffjosejeff at gmail.com
Sun May 30 18:53:54 CEST 2010


Let me state at the outset that I have no idea what Harvestman is or what
you're trying to acheieve.

Looking at the stacktrace, I'll give you some pointers as to what I'd do if
I had got this error.


   1. File
   "/usr/lib/python2.6/site-packages/HarvestMan-2.0.4betadev_r253-py2.6.egg/harvestman/lib/rules.py",
   line 355, in apply_word_filter
   2.     if self._configobj.wordfilterre.search(data):
   3. AttributeError: 'NoneType' object has no attribute 'search'


This tells me that self._configobj is None, which clearly it shouldnt be.
Your first step should be to identify where is self._configobj gets defined.

search for "self._configobj = " or "self._configobj=" in the py files ( that
is if its something that gets defined automatically)

Since the error comes from one of the library files (
/usr/lib/python2.6/site-packages/HarvestMan-2.0.4betadev_r253-py2.6.egg/harvestman/lib/rules.py)

it shows something you've done wrongly. One of the things you should keep in
mind while using third party frameworks (Harvestman is some kinda framwork
right ? ) it needs to have all things in place to get it working. Read the
docs, search google for example programs/code snippets.

Another clue is configobj -> "config" .. so this has something to do with
config. Probably a bad config file ?

I know this is too vague, as I said I have no idea what this Harvestman is.


Good Luck
/jeff


On Sun, May 30, 2010 at 9:56 PM, JAGANADH G <jaganadhg at gmail.com> wrote:

> Dear All I was trying to run Harvestman(A Python tool for web harvesting).
> I got the following error
> http://pastebin.com/uPzUs0Xw
>
> My configuration file is http://pastebin.com/dfhiy2Q6
>
> Can any body help me regarding this.
>
> I was trying to harvest my blog with a word filter 'Python'
>
> --
> **********************************
> JAGANADH G
> http://jaganadhg.freeflux.net/blog
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list