[lxml-dev] Compilation problem with current trunk

Michael Guntsche mike at it-loops.com
Sat Mar 10 08:39:37 CET 2007


Hello,

I updated to the latest trunk today and tried compiling.
I got the following error.

building 'lxml.etree' extension
lxml/src/lxml/xpath.pxi:146:27: C method can only be called
lxml/src/lxml/xpath.pxi:146:27: Cannot convert 'PyObject *((struct  
__pyx_obj_5etree__BaseContext *,PyObject *,PyObject *))' to Python  
object

I went through the last changes and found out that the brake happened  
between 39965 and 39966. I revertet the change in extensions.pxi that  
changed
	
def addNamespace
to
cdef addNamespace

and it compiled again. I am not sure if this is the correct fix,  
since my pyrex knowledge is almost non-existant, but it compiled for me.

Kind regards,
Michael



More information about the lxml-dev mailing list