Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-02-2009, 10:11 AM   #1
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Problem converting HTML to Mobi

Converting "The Robe" by Lloyd C. Douglas, sourced from Project Gutenberg Australia:
Quote:
Job: **Convert book: The Robe**
**tuple**: ('TypeError', u"can't multiply sequence by non-int of type 'float'")
**Traceback**:
Traceback (most recent call last):
File "/home/kovid/work/calibre/src/calibre/parallel.py", line 958, in worker
File "/home/kovid/work/calibre/src/calibre/parallel.py", line 916, in work
File "/home/kovid/work/calibre/src/calibre/ebooks/mobi/from_any.py", line 56, in any2mobi
File "/home/kovid/work/calibre/src/calibre/ebooks/mobi/writer.py", line 610, in oeb2mobi
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 108, in transform
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 275, in flatten_spine
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 235, in flatten_node
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 192, in flatten_node
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line 318, in __getitem__
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line 356, in _unit_convert
TypeError: can't multiply sequence by non-int of type 'float'

**Log**:
Found OPF file in archive
Creating EPUB file...
[INFO] Parsing calibre_0.5.10_dIz1t9_any2epub1/content/The Robe.xhtml
[INFO] Detected chapter: CHAPTER
[INFO] Detected chapter: Chapter I
[INFO] Detected chapter: Chapter II
[INFO] Detected chapter: Chapter III
[INFO] Detected chapter: Chapter IV
[INFO] Detected chapter: Chapter V
[INFO] Detected chapter: Chapter VI
[INFO] Detected chapter: Chapter VII
[INFO] Detected chapter: Chapter VIII
[INFO] Detected chapter: Chapter IX
[INFO] Detected chapter: Chapter X
[INFO] Detected chapter: Chapter XI
[INFO] Detected chapter: Chapter XII
[INFO] Detected chapter: Chapter XIII
[INFO] Detected chapter: Chapter XIV
[INFO] Detected chapter: Chapter XV
[INFO] Detected chapter: Chapter XVI
[INFO] Detected chapter: Chapter XVII
[INFO] Detected chapter: Chapter XVIII
[INFO] Detected chapter: Chapter XIX
[INFO] Detected chapter: Chapter XX
[INFO] Detected chapter: Chapter XXI
[INFO] Detected chapter: Chapter XXII
[INFO] Detected chapter: Chapter XXIII
[INFO] Detected chapter: Chapter XXIV
[INFO] Detected chapter: Chapter XXV
[ERROR] CSSStyleRule: No start { of style declaration found: u'<' [2:4: ;]
[ERROR] Selector: Unexpected CHAR. [2:1: &]
[ERROR] SelectorList: Invalid Selector: &lt
[ERROR] CSSStyleRule: No style declaration or "}" found: u'<'
[ERROR] Selector: Unexpected CHAR. [2:5: !]
[ERROR] Selector: Unexpected CHAR. [2:6: -]
[ERROR] Selector: Unexpected CHAR. [2:7: -]
[ERROR] SelectorList: Invalid Selector: !--
body
[ERROR] Property: Invalid value for "CSS Color Module Level 3/CSS Level 2.1" property: color: brown
[ERROR] Property: Invalid value for "CSS Level 2.1" property: font-size: "12pt"
[ERROR] Property: Invalid value for "CSS Level 2.1" property: font-size: "14pt"
[ERROR] Property: Invalid value for "CSS Level 2.1" property: font-size: "14pt"
[ERROR] CSSStyleRule: No start { of style declaration found: u'-->' [8:6: ;]
[ERROR] Selector: Unexpected CHAR. [8:1: -]
[ERROR] Selector: Unexpected CHAR. [8:2: -]
[ERROR] Selector: Unexpected CHAR. [8:3: &]
[ERROR] SelectorList: Invalid Selector: --&gt
[ERROR] CSSStyleRule: No style declaration or "}" found: u'-->'
[DEBUG] Saving stylesheets...
[INFO] Splitting The Robe.xhtml (1256 KB)
[INFO] Checking files for bad links...
[INFO] Creating Mobipocket file from EPUB...
[INFO] Generating in-line TOC...
[INFO] Applying case-transforming CSS...
[ERROR] Property: Invalid value for "CSS Color Module Level 3/CSS Level 2.1" property: color: brown
[ERROR] Property: Invalid value for "CSS Level 2.1" property: font-size: "12pt"
[ERROR] Property: Invalid value for "CSS Level 2.1" property: font-size: "14pt"
[ERROR] Property: Invalid value for "CSS Level 2.1" property: font-size: "14pt"
[INFO] Flattening CSS and remapping font sizes...
[INFO] Source base font size is 12.00000pt
('TypeError', u"can't multiply sequence by non-int of type 'float'")
Traceback (most recent call last):
File "/home/kovid/work/calibre/src/calibre/parallel.py", line 958, in worker
File "/home/kovid/work/calibre/src/calibre/parallel.py", line 916, in work
File "/home/kovid/work/calibre/src/calibre/ebooks/mobi/from_any.py", line 56, in any2mobi
File "/home/kovid/work/calibre/src/calibre/ebooks/mobi/writer.py", line 610, in oeb2mobi
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 108, in transform
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 275, in flatten_spine
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 235, in flatten_node
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/transforms/flatcss.py", line 192, in flatten_node
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line 318, in __getitem__
File "/home/kovid/work/calibre/src/calibre/ebooks/oeb/stylizer.py", line 356, in _unit_convert
TypeError: can't multiply sequence by non-int of type 'float'
AprilHare is offline   Reply With Quote
Old 05-02-2009, 01:39 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: 25,397
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Post a link to the file
kovidgoyal is online now   Reply With Quote
Old 05-02-2009, 08:39 PM   #3
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by kovidgoyal View Post
Post a link to the file
http://gutenberg.net.au/ebooks04/0400561h.html I clicked "save page - as html - complete" using Firefox.
AprilHare is offline   Reply With Quote
Old 05-02-2009, 09:34 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: 25,397
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Will be fixed in next release
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MemoryError converting PHP manual (html->mobi) jalperin Calibre 1 09-21-2010 11:40 AM
Problem converting txt to mobi toby39 Calibre 10 09-05-2010 02:16 PM
multiple repeat error converting HTML to MOBI moog Calibre 0 02-05-2010 01:03 PM
Problem converting HTML files to LRF red_five Calibre 2 06-09-2009 03:03 AM
Converting HTML to Mobi? Sonist Calibre 5 02-10-2009 01:23 PM


All times are GMT -4. The time now is 10:02 AM.


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