error building lxml.etree

Robin Becker robin at reportlab.com
Tue Aug 26 07:03:51 EDT 2014


On 22/08/2014 18:53, Stefan Behnel wrote:
> Robin Becker schrieb am 22.08.2014 um 17:50:
>> I'm trying to build a bunch of extensions in a 2.7 virtual environment on a
>.............
>>
>> Has anyone else seen this error? It's entirely possible that it might be I
>> don't have enough memory or something
>
> Yes, that's most likely it. Having 500MB+ of free(!) RAM is a good idea for
> the build.
>
>
>> lxml builds almost always take a long time.
>
> For testing, you can speed things up quite substantially by using "-O0" as
> your CFLAGS. Not a good idea for a production system, though.
>
> You might also get away with building a (static?) wheel on another
> compatible Linux system that has more RAM.
>
> Stefan
>
>
I exported the VM to a higher spec host box and there I was able to build lxml 
without issue after increasing the VM base memory.
-- 
Robin Becker




More information about the Python-list mailing list