Note that there are some explanatory texts on larger screens.

plurals
  1. POMemoryError with minidom in Python
    primarykey
    data
    text
    <p>I've got a MemoryError with minidom parser in Python. I'm reading 8000 small files (most under 50 Kb) and I've got this error after 2500 reading...`</p> <pre><code>Traceback (most recent call last): File "C:\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 1307, in &lt;module&gt; debugger.run(setup['file'], None, None) File "C:\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 1060, in run pydev_imports.execfile(file, globals, locals) #execute the script File "C:\Users\calculator_2012.py", line 81, in &lt;module&gt; file_content, economicFlow, elementaryFlow = XML_reader(spoldFile) File "C:\Users\XML_reader.py", line 10, in XML_reader xmltree = parse(spold_filename) File "C:\Python27\lib\xml\dom\minidom.py", line 1914, in parse return expatbuilder.parse(file) File "C:\Python27\lib\xml\dom\expatbuilder.py", line 924, in parse result = builder.parseFile(fp) File "C:\Python27\lib\xml\dom\expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) File "C:\Python27\lib\xml\dom\expatbuilder.py", line 294, in character_data_handler_cdata _append_child(self.curNode, node) File "C:\Python27\lib\xml\dom\minidom.py", line 274, in _append_child def _append_child(self, node): File "C:\eclipse\plugins\org.python.pydev.debug_2.4.0.2012020116\pysrc\pydevd.py", line 942, in trace_dispatch traceback.print_exc() File "C:\Python27\lib\traceback.py", line 232, in print_exc print_exception(etype, value, tb, limit, file) MemoryError </code></pre> <p>Is there anyone who can suggest a "memory leak free" parser ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload