View Single Post
Old 02-02-2009, 11:16 PM   #1
Leep
Guru
Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.
 
Leep's Avatar
 
Posts: 739
Karma: 1018859
Join Date: Jun 2008
Location: Near Seattle
Device: kindle1, K3, K3G (thanks MR), iTouch, Kindle Touch
Kindle issues with Calibre

The following changes in 0.4.133 are all working well. News feeds, recognizing SD card and editing rating without going to meta data edit. Am having problems with the following however.
1. The prc format for some books keeps disappearing even though the original file is a prc, and has been added to the library.
2. Changes to the meta data are not reflected on the Kindle (title and author) even when the book is transferred via Calibre
3. Got the brilliant idea that I could fix this by creating a mobi conversion but get the same error on about 20% of the books I am trying to convert from prc to mobi.

Job: **Convert book: Silent Run**
**tuple**: ('TypeError', u"bad operand type for abs(): 'unicode'")
**Traceback**:
Traceback (most recent call last):
File "parallel.py", line 957, in worker
File "parallel.py", line 915, in work
File "calibre\ebooks\mobi\from_any.pyo", line 56, in any2mobi
File "calibre\ebooks\mobi\writer.pyo", line 608, in oeb2mobi
File "calibre\ebooks\mobi\mobiml.pyo", line 92, in transform
File "calibre\ebooks\mobi\mobiml.pyo", line 114, in mobimlize_spine
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 361, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 159, in mobimlize_content
TypeError: bad operand type for abs(): 'unicode'

**Log**:
Exploding MOBI file: c:\docume~1\owner~1.lee\locals~1\temp\calibre_0.4. 133_mnm_zz.prc
Creating EPUB file...
[DEBUG] Processing HTMLFile:0:a:c:\docume~1\owner~1.lee\locals~1\temp \calibre_0.4.133_jwyety_any2epub2\Silent_Run.html. ..
[INFO] Parsing temp\calibre_0.4.133_jwyety_any2epub2\Silent_Run.h tml
[INFO] Detected chapter: Chapter One
[INFO] Detected chapter: Chapter Two
[INFO] Detected chapter: Chapter Three
[INFO] Detected chapter: Chapter Four
[INFO] Detected chapter: Chapter Five
[INFO] Detected chapter: Chapter Six
[INFO] Detected chapter: Chapter Seven
[INFO] Detected chapter: Chapter Eight
[INFO] Detected chapter: Chapter Nine
[INFO] Detected chapter: Chapter Ten
[INFO] Detected chapter: Chapter Eleven
[INFO] Detected chapter: Chapter Twelve
[INFO] Detected chapter: Chapter Thirteen
[INFO] Detected chapter: Chapter Fourteen
[INFO] Detected chapter: Chapter Fifteen
[INFO] Detected chapter: Chapter Sixteen
[INFO] Detected chapter: Chapter Seventeen
[INFO] Detected chapter: Chapter Eighteen
[INFO] Detected chapter: Chapter Nineteen
[INFO] Detected chapter: Chapter Twenty
[INFO] Detected chapter: Chapter Twenty-one
[INFO] Detected chapter: Chapter Twenty-two
[INFO] Detected chapter: Chapter Twenty-three
[DEBUG] Saving stylesheets...
[INFO] Splitting Silent_Run.xhtml (619 KB)
[INFO] Checking files for bad links...
[INFO] Creating Mobipocket file from EPUB...
[INFO] Generating in-line TOC...
[INFO] Applying case-transforming CSS...
[INFO] Flattening CSS and remapping font sizes...
[INFO] Source base font size is 18.00000pt
[INFO] Rasterizing SVG images...
[INFO] Trimming unused files from manifest...
[INFO] Converting XHTML to Mobipocket markup...
('TypeError', u"bad operand type for abs(): 'unicode'")
Traceback (most recent call last):
File "parallel.py", line 957, in worker
File "parallel.py", line 915, in work
File "calibre\ebooks\mobi\from_any.pyo", line 56, in any2mobi
File "calibre\ebooks\mobi\writer.pyo", line 608, in oeb2mobi
File "calibre\ebooks\mobi\mobiml.pyo", line 92, in transform
File "calibre\ebooks\mobi\mobiml.pyo", line 114, in mobimlize_spine
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 363, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 361, in mobimlize_elem
File "calibre\ebooks\mobi\mobiml.pyo", line 159, in mobimlize_content
TypeError: bad operand type for abs(): 'unicode'

What am I doing wrong??
Leep is offline   Reply With Quote