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: xml.etree sourcecode bug
Type: Stage: resolved
Components: XML Versions: Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: baksaz, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-05-24 08:36 by baksaz, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
xmlMerge.py baksaz, 2017-05-24 08:36 xml merger
Messages (3)
msg294335 - (view) Author: Zoltan Baksa (baksaz) Date: 2017-05-24 08:36
Hi,
I used before an XML merger script with 2.7 version, which was running fine. After my Anaconda was updated by SCCM to version 3.6 the same script fails and reports the following traceback:

File "C:\Program Files\Anaconda3\lib\xml\etree\ElementTree.py", line 1190, in
parse
 tree.parse(source, parser)
  File "C:\Program Files\Anaconda3\lib\xml\etree\ElementTree.py", line 591, in p
arse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: unclosed token: line 128, column 4

What can I do?
msg294349 - (view) Author: Zoltan Baksa (baksaz) Date: 2017-05-24 12:11
The error was caused, because the xml files did not had the correct close element for the root tag.
The issue is not closed, because the error message was not adequate to be able to highlight the root cause.
msg294471 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-05-25 11:41
This error message is not created by xml.etree, it is just propagated from the expat library. Open a ticket on the expat library tracker if you want to improve the error message.
History
Date User Action Args
2022-04-11 14:58:46adminsetgithub: 74637
2017-05-25 11:41:21serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg294471

resolution: not a bug
stage: resolved
2017-05-24 12:11:01baksazsetmessages: + msg294349
2017-05-24 08:36:18baksazcreate