Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 02-02-2009, 11:46 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: 43,879
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
3. Looks like a bug in the MOBI output, open a ticket and set the component to MOBI Output and attacha sample file showing this error.
2. Hard for me to fix since I dont have a Kindle, but try the following: Use the save to disk butoon to save the prc file for a book whose metadata you've edited. Then run the command (ina terminal)

mobi-meta filename.prc

where filename.prc is the filename of the saved book. This should print outthe metadata in the book. Is it being changed.

1. Open another ticket and attach one these disappearing files.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-03-2009, 12:58 AM   #3
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
Thanks for your reply. I closed Calibre and restarted it. Six of the books that previously would not convert, converted just fine and now I'm getting a new error on other books so will open tickets for the conversions and disappearing books as you suggest. Incidentally, the disappearing books were somewhat random, not the same books each time, which puzzled me, since I thought it was probably just something about the file or filename.
What directory do I need to be in when I run the mobi-meta check?

Incidentally, this is a really cool program when it works. Love the drag and drop for new books and the way you've set it up to collect the metadata and covers. And the tag, rating and series fields are perfect. Appreciate that you guys are helping out us Kindle folks. Many thanks!
Leep is offline   Reply With Quote
Old 02-03-2009, 04:51 AM   #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: 43,879
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to be in the same directory as the file
kovidgoyal is offline   Reply With Quote
Old 06-07-2009, 06:41 PM   #5
kindlenovice
Junior Member
kindlenovice began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2009
Device: kindle 2
kindle not recognizing sort

After using Calibre for about 2 hours, I downloaded the first mobi file to the kindle 2.
The kindle 2 displayed correctly the author and title on the home screen.
The kindle will correctly sort by title.
The kindlel will not sort correctly by author name.
I am using the ISBN fearture in Calibre and getting the info I need. Am I using a wrong setting in the metadata field?
kindlenovice is offline   Reply With Quote
Advert
Old 06-07-2009, 07:25 PM   #6
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: 43,879
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the MOBI conversion options make sure that use author sort for author is checked.
kovidgoyal is offline   Reply With Quote
Reply

Tags
calibre, kindle, workshop


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 0.5.14 issues when installing coplate Calibre 1 06-21-2009 08:27 PM
calibre install issues NourieNour Calibre 2 06-07-2009 06:30 PM
Calibre Issues pghaworth Calibre 21 04-17-2009 02:11 PM
Two calibre pending issues Stingo Calibre 18 03-23-2009 12:22 PM
Minor Calibre issues starrigger Calibre 20 02-09-2009 10:54 AM


All times are GMT -4. The time now is 01:23 PM.


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