![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2009
Device: Sony Reader PRS-500
|
Problem converting ODT to LRF
Greetings.
I am trying to convert an ODT file to LRF using calibre 0.4.124. I have tried this on both Windows XP and Fedora 10 Linux. I have one file that I can convert with no problem. A second file, however, gives me the following error output: isinstance() arg 2 must be a class, type, or tuple of classes and types I am assuming I have something in my source file that the underlying software doesn't like, but there doesn't seem to be enough information for me to figure what the problem is. Any clue about the possible cause?Detailed traceback: Traceback (most recent call last): File "/home/kovid/work/calibre/src/calibre/gui2/__init__.py", line 144, in dispatch File "/home/kovid/work/calibre/src/calibre/gui2/main.py", line 1068, in book_converted File "/home/kovid/work/calibre/src/calibre/gui2/main.py", line 1335, in job_exception File "/home/kovid/work/calibre/src/calibre/parallel.py", line 618, in gui_text TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's a regression in the error reporting code of 0.4.124
To get a proper error message, try converting it from the command line with any2lrf filename.odt |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2009
Device: Sony Reader PRS-500
|
Here's the output:
[~/Documents/My Library/Jeff Falter/Sermon on Matthew 2.1-12] $ any2lrf "Sermon on Matthew 2.1-12 - Jeff Falter.odt" That doesn't seem to help me any. Can you suggest what this might mean? Thanks.
Extracting ODT file... Traceback (most recent call last): File "/tmp/init.py", line 45, in <module> File "/home/kovid/work/calibre/src/calibre/ebooks/lrf/any/convert_from.py", line 196, in main File "/home/kovid/work/calibre/src/calibre/ebooks/lrf/any/convert_from.py", line 165, in process_file File "/home/kovid/work/calibre/src/calibre/ebooks/lrf/any/convert_from.py", line 106, in odt2lrf File "/home/kovid/work/calibre/src/calibre/ebooks/odt/to_oeb.py", line 35, in __call__ File "/home/kovid/work/calibre/src/odf/odf2xhtml.py", line 1239, in odf2xhtml File "/home/kovid/work/calibre/src/odf/odf2xhtml.py", line 1247, in xhtml File "/home/kovid/work/calibre/src/odf/odf2xhtml.py", line 1232, in parseodf File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in start_element_ns File "/home/kovid/work/calibre/src/odf/odf2xhtml.py", line 473, in startElementNS File "/home/kovid/work/calibre/src/odf/odf2xhtml.py", line 463, in handle_starttag File "/home/kovid/work/calibre/src/odf/odf2xhtml.py", line 735, in s_style_handle_properties KeyError: None /usr/bin/any2lrf: line 7: 9862 Segmentation fault $loader "$@" |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It means that odfpy, the library calibre uses to convert ODF documents to XHTML cannot handle this particular document. I suggest opening a ticket and attaching the file to it.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2009
Device: Sony Reader PRS-500
|
Thanks for your help. I have opened Ticket #1543 and attached the problem file.
I appreciate how responsive you are to users of your software. Thanks a bunch. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem Converting Book Designer HTML to LRF | Phonella | Calibre | 6 | 10-22-2009 01:21 PM |
Converting ODT to EPUB/LRF | banjomike | Calibre | 2 | 10-03-2009 04:32 PM |
Problem converting .lit to.lrf | corroonb | Calibre | 0 | 07-25-2009 05:14 AM |
Problem converting HTML files to LRF | red_five | Calibre | 2 | 06-09-2009 03:03 AM |
problem with calibre converting pdf to lrf | badr | Calibre | 11 | 05-23-2008 10:16 AM |