Do you guys have lxml installed? With the dev release it will use lxml for parsing if installed and that should help a bit.
-----Original Message----- From: Joseph Hall [perlho...@gmail.com<mailto:perlho...@gmail.com>] Sent: Tuesday, June 24, 2014 05:52 PM Eastern Standard Time To: users@libcloud.apache.org Subject: Re: list_images crashes (for ec2) Where are you actually running this code from? I have found in recent months that, when running libcloud against EC2 on a micro instance, list_images() returns just too many images for the machine to handle, and eventually the OOM killer destroys the process. On Tue, Jun 24, 2014 at 3:33 PM, Marko Loparic <marko.lopa...@gmail.com> wrote: > Hello, > > The following script crashes when running on Amazon instance. > > ================================ > from libcloud.compute.types import Provider > from libcloud.compute.providers import get_driver > > EC2_ACCESS_ID = ... > EC2_SECRET = ... > Driver = get_driver(Provider.EC2_US_EAST) > conn = Driver(EC2_ACCESS_ID, EC2_SECRET) > > print "before" > conn.list_images() > print "after" > ================================ > > The first print appears and "Killed" is displayed before the second print. > > I suspect it is an error in etree module (apparently the list of > available images is huge). > > I use list_images to get the python object of the desired image > > image = [i for i in conn.list_images() if i.id == EC2_AMI][0] > > so that I can create a node with this image (create_node method) > > Do you know if there is a way to create a node without using > list_images or if there is another way to avoid this crash? > > I am using python 2.7.3 and libcloud 0.14.1. > > Thanks a lot in advance! > Marko -- "In order to create, you have to have the willingness, the desire to be challenged, to be learning." -- Ferran Adria (speaking at Harvard, 2011)