PyYAML hangs when reading a large YAML file

Misha Penkov <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <CAAyYaWrq-YUhEDXM4vP2MOUPb+Phee5iSPyG87i69feZVfugfg@mail.gmail.com>
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.

Cheers,
Michael

------------------------------------------------------------------------------
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

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.