Bug 831072

Summary: [abrt] calibre-0.8.54-1.fc18: xmlreader.py:316:__getitem__:KeyError: (u'urn:oasis:names:tc:opendocument:xmlns:text:1.0', 'style-name')
Product: [Fedora] Fedora Reporter: Michal Nowak <mnowak>
Component: calibreAssignee: Kevin Fenzi <kevin>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: chkr, frankly3d, kevin, mbacovsk, nushio, ohudlick
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d90f24048611af6ab8554041ccb682087162af7b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-01 17:29:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Nowak 2012-06-12 06:58:40 UTC
libreport version: 2.0.10
abrt_version:   2.0.10
cmdline:        python2 /bin/ebook-convert 'Uvod do historie.odt' xxx.mobi
comment:        Just started ODF -> MOBI conversion.
executable:     /bin/ebook-convert
kernel:         3.4.0-1.fc17.x86_64
time:           Tue 12 Jun 2012 08:42:45 AM CEST
uid:            1000
username:       newman

backtrace:
:xmlreader.py:316:__getitem__:KeyError: (u'urn:oasis:names:tc:opendocument:xmlns:text:1.0', 'style-name')
:
:Traceback (most recent call last):
:  File "/bin/ebook-convert", line 20, in <module>
:    sys.exit(main())
:  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 325, in main
:    plumber.run()
:  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 979, in run
:    accelerators, tdir)
:  File "/usr/lib64/calibre/calibre/customize/conversion.py", line 208, in __call__
:    log, accelerators)
:  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/odt_input.py", line 23, in convert
:    return Extract()(stream, '.', log)
:  File "/usr/lib64/calibre/calibre/ebooks/odt/input.py", line 151, in __call__
:    html = self.odf2xhtml(stream)
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 1287, in odf2xhtml
:    return self.xhtml()
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 1295, in xhtml
:    self.parseodf()
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 1280, in parseodf
:    parser.parse(inpsrc)
:  File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 107, in parse
:    xmlreader.IncrementalParser.parse(self, source)
:  File "/usr/lib64/python2.7/xml/sax/xmlreader.py", line 123, in parse
:    self.feed(buffer)
:  File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 207, in feed
:    self._parser.Parse(data, isFinal)
:  File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 338, in start_element_ns
:    AttributesNSImpl(newattrs, qnames))
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 478, in startElementNS
:    self.handle_starttag(tag, method, attrs)
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 468, in handle_starttag
:    method(tag,attrs)
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 998, in s_text_h
:    name = self.classname(attrs)
:  File "/usr/lib/python2.7/site-packages/odf/odf2xhtml.py", line 513, in classname
:    c = attrs[(TEXTNS,'style-name')]
:  File "/usr/lib64/python2.7/xml/sax/xmlreader.py", line 316, in __getitem__
:    return self._attrs[name]
:KeyError: (u'urn:oasis:names:tc:opendocument:xmlns:text:1.0', 'style-name')
:
:Local variables in innermost frame:
:self: <xml.sax.xmlreader.AttributesNSImpl instance at 0x220f290>
:name: (u'urn:oasis:names:tc:opendocument:xmlns:text:1.0', 'style-name')

Comment 1 Michal Nowak 2012-06-12 07:04:25 UTC
I can provide you with a reproducer if you wish.

Comment 2 Michal Nowak 2012-06-12 07:24:56 UTC
calibre 0.8.55 also fails.

Comment 3 Michal Nowak 2012-06-12 10:05:38 UTC
It's somewhat strange. It "randomly" works and fails when started in GNOME or console or via SSH...

Upstream x86_64 Linux binary bundle seems to work.

Comment 4 Kevin Fenzi 2012-06-12 14:50:45 UTC
Sure, if you can attach a reproducing file that would help. 

Thanks!

Comment 5 Kevin Fenzi 2012-10-06 17:31:35 UTC
Can you try the latest version from my side repo and see if this persists?

Comment 7 Kevin Fenzi 2013-05-02 21:14:51 UTC
In the next few days there will be a newer calibre version available in updates-testing. 
Can you try: 'yum --enablerepo=updates-testing update calibre' and try and duplicate the problem with the new version? 

Thanks.

Comment 8 Fedora End Of Life 2013-07-04 06:05:02 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2013-08-01 17:29:16 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.