This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ElementTree limitation
Type: behavior Stage: resolved
Components: XML Versions: Python 3.7
process
Status: closed Resolution: later
Dependencies: Superseder:
Assigned To: Nosy List: Ananth Vijalapuram
Priority: normal Keywords:

Created on 2020-02-21 17:43 by Ananth Vijalapuram, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (1)
msg362416 - (view) Author: Ananth Vijalapuram (Ananth Vijalapuram) Date: 2020-02-21 17:43
I am trying to parse a very large XML file. Here is the output:

/usr/intel/bin/python3.7.4 crif_parser.py
Retrieved 3593891712 characters <- this is printed from my script
Traceback (most recent call last):
  File "crif_parser.py", line 9, in <module>
    tree = ET.fromstring(data)
  File "/usr/intel/pkgs/python3/3.7.4/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
    parser.feed(text)
OverflowError: size does not fit in an int
History
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 83894
2020-02-21 17:57:21Ananth Vijalapuramsetstatus: open -> closed
resolution: later
stage: resolved
2020-02-21 17:43:03Ananth Vijalapuramcreate