Bug 782901 - [abrt] itstool-1.1.1-1.fc16: itstool:336:_check_errors:parserError: Entity: line 1: parser error : Opening and ending tag mismatch: gui line 1 and key
Summary: [abrt] itstool-1.1.1-1.fc16: itstool:336:_check_errors:parserError: Entity: ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: itstool
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5279c491c393495f90be163ee6e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-18 20:10 UTC by Mario Blättermann
Modified: 2012-11-15 09:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-15 09:41:00 UTC
Type: ---


Attachments (Terms of Use)

Description Mario Blättermann 2012-01-18 20:10:48 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        /usr/bin/python -s /usr/bin/itstool -m messages.mo ../C/bug-filing.page ../C/change-board-size.page ../C/change-theme.page ../C/commandline.page ../C/develop.page ../C/documentation.page ../C/fast-moves.page ../C/index.page ../C/license.page ../C/play.page ../C/rules.page ../C/scores.page ../C/shortcuts.page ../C/strategy.page ../C/translate.page
executable:     /usr/bin/itstool
kernel:         3.1.8-2.fc16.i686
reason:         itstool:336:_check_errors:parserError:  Entity: line 1:  parser  error :  Opening and ending tag mismatch: gui line 1 and key
time:           Mi 18 Jan 2012 20:12:06 CET
uid:            1000
username:       mariobl

backtrace:
:itstool:336:_check_errors:parserError:  Entity: line 1:  parser  error :  Opening and ending tag mismatch: gui line 1 and key
: mittelbar angewendet und für den nächsten Start von <gui>Fünf oder mehr</key>
:                                                                                ^
:
:
:Traceback (most recent call last):
:  File "/usr/bin/itstool", line 974, in <module>
:    doc.merge_translations(translations, opts.lang)
:  File "/usr/bin/itstool", line 657, in merge_translations
:    self._check_errors()
:  File "/usr/bin/itstool", line 336, in _check_errors
:    raise libxml2.parserError(self._xml_err)
:parserError:  Entity: line 1:  parser  error :  Opening and ending tag mismatch: gui line 1 and key
: mittelbar angewendet und für den nächsten Start von <gui>Fünf oder mehr</key>
:                                                                                ^
:
:
:Local variables in innermost frame:
:self: <__main__.Document object at 0x9366c2c>

comment:
:First I tried to create translated versions of the *.page files in help/C using the following command:
:
:$ msgfmt de.po && itstool -m messages.mo ../C/*.page
:
:But there was an additional legal.xml in help/C which was not translated. This caused the error. The following command worked:
:
:$ msgfmt de.po && itstool -m messages.mo ../C/*.xml ../C/*.page
:
:In general, there should be a convenient way to detect such missing files correctly, or we should prohibit such "mixed mode" *.page and *.xml files in the same folder by appropriate rules in the build toolchain. Would be simple to migrate legal.xml to legal.page, wouldn't it?

Comment 1 Mario Blättermann 2012-01-18 20:17:01 UTC
Sorry for the wrong description. Of course, the error was caused by a mismatching xml tag pair.

But my thoughts about the legal.xml should be worth to think about anyway.

Comment 2 Mario Blättermann 2012-11-15 09:41:00 UTC
This issue has never been happened again. I suppose this was due to malformed XML. I'll close this bug report now.


Note You need to log in before you can comment on or make changes to this bug.