[Xapian-devel] Python bindings smoketest error

James Aylett james-xapian at tartarus.org
Wed Apr 30 18:37:13 BST 2008


On Wed, Apr 30, 2008 at 12:53:02PM +0100, Charlie Hull wrote:

> I'm getting an error in the smoketest. I'm using latest Swig and Python 
> bindings from SVN-HEAD:
> 
>    File "smoketest.py", line 23, in <module>
>      import xapian
>    File 
> "C:\work\xapian\xapian-SVN\xapian-core\win32\Release\Python\xapian.py", 
> line 2099, in <module>
>      ValueRangeProcessor.__call__ = ValueRangeProcessor.__call
> AttributeError: type object 'ValueRangeProcessor' has no attribute '__call'
> 
> This is the very last line in xapian.py, if that's relevant!

The preceding comment suggests that __call() should be generated by
util.i (although it calls it utils.i by mistake). If you comment that
line out, does something like:

> print xapian.ESet.items

succeed? (It's generated in the same file, by approximately the same
mechanism.)

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-devel mailing list