Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2009, 04:06 PM   #1
jfalter0
Junior Member
jfalter0 began at the beginning.
 
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

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
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?

Thanks in advance.
jfalter0 is offline   Reply With Quote
Old 01-03-2009, 04:17 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Advert
Old 01-03-2009, 04:25 PM   #3
jfalter0
Junior Member
jfalter0 began at the beginning.
 
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"
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 "$@"
That doesn't seem to help me any. Can you suggest what this might mean? Thanks.
jfalter0 is offline   Reply With Quote
Old 01-03-2009, 04:36 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 01-03-2009, 05:01 PM   #5
jfalter0
Junior Member
jfalter0 began at the beginning.
 
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.
jfalter0 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:46 AM.


MobileRead.com is a privately owned, operated and funded community.