Re: PyYAML hangs when reading a large YAML file
Alexey Zakhlestin <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
On 18.04.2013, at 15:17, Misha Penkov <[email protected]> wrote: > Hi, > > I'm trying to load data from a large YAML file (approx. 300MB). PyYAML hangs when I try to load using this code: > > import yaml > y = yaml.load(open("/tmp/tmp6aJfKz")) > > The YAML file itself is valid (it is being output by OpenCV). > > Can anyone suggest a way to diagnose this problem? I can provide the file, but as I've already mentioned, it's fairly large. did you check resource-usage? could it be, that Python just grabbed all RAM it could reach and started to actively use swap? ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter