[Xapian-discuss] problem building python bindings

Tom Mortimer tom at lemurconsulting.com
Tue Aug 21 16:53:48 BST 2007


Hi,

I'm trying to build xapian with python bindings version 0.9.7 (for  
compatibility with a customer's existing databases which use the old  
term scheme), and when I try to make the bindings, I get -

modern/xapian_wrap.cc: In function 'PyObject* _wrap_new_Query__SWIG_6 
(PyObject*, int, PyObject**)':
modern/xapian_wrap.cc:20033: error: invalid conversion from 'int*' to  
'Py_ssize_t*'
modern/xapian_wrap.cc:20033: error:   initializing argument 3 of 'int  
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)'
modern/xapian_wrap.cc: In function 'PyObject* _wrap_new_Query__SWIG_7 
(PyObject*, int, PyObject**)':
modern/xapian_wrap.cc:20106: error: invalid conversion from 'int*' to  
'Py_ssize_t*'
modern/xapian_wrap.cc:20106: error:   initializing argument 3 of 'int  
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)'

I assume I need to rebuild the wrappers, but can someone tell me  
how?  This is on an Intel Mac, OS X 10.4.10.

cheers,
Tom





More information about the Xapian-discuss mailing list