[lxml-dev] Re: lxml build problem

Olivier Grisel ogrisel at nuxeo.com
Mon Feb 27 10:56:01 CET 2006


Allan Curtis a écrit :
> 
> I thought that v0.9.3.1 of Pyrex was patched.  Anyway, I have progress but get 
> further errors:
> [snip]
>   File "/usr/lib64/python2.4/distutils/command/build_ext.py", line 442, in 
> build                         _extension
>     sources = self.swig_sources(sources, ext)
> TypeError: swig_sources() takes exactly 2 arguments (3 given)
> 
> I am new to Python, but this error appears to be a Python rather than 
> assembler issue.  Any guidance would be much appreciated.

After googling a bit it looks like the 0.9.3 + gcc4 patch does not work with 
python 2.4 (except on my machine, why?). This has been fixed in 0.9.3.1. Thus 
you need use the 0.9.3.1 version and apply the missing part of the patch 
manually. Or you can fix offending line by hand:

site-packages/Pyrex/Distutils/build_ext.py

35c35
<   def swig_sources (self, sources):
---
 >   def swig_sources (self, sources, extension=None):

http://lists.copyleft.no/pipermail/pyrex/2005-July/001256.html

-- 
Olivier



More information about the lxml-dev mailing list