Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 07-19-2009, 04:52 PM   #586
Josch91
Reader
Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.
 
Josch91's Avatar
 
Posts: 818
Karma: 3522
Join Date: Apr 2009
Location: Germany
Device: Kindle 4, iPad
Edit your post.
Josch91 is offline  
Old 07-19-2009, 05:42 PM   #587
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by hannah View Post
mostly calibre crashed when adding books, and i don't think it's linked to some books, because when afterwards i add the books not added because off the crash, it works.
it has also crashed when bulk setting metadata (tags).

I wondered if it was the size of the db that was causing this. Before i upgraded it was so bad on 0.5.14 that it was not possible to add books anymore, there were errors the whole time. Alas i forgot to save and report them because i thought that corrected in 0.6
It's much better, at least i can add books, but this evening alone i had several crashes.
Hmm as far as I know, the size of the library shouldn't affect adding (it may make it a little slower because of the check for duplicates but it shouldn't cause a crash).
kovidgoyal is online now  
Old 07-19-2009, 05:43 PM   #588
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@hippocrates Yeah it doesn't work for me either
kovidgoyal is online now  
Old 07-19-2009, 06:40 PM   #589
hippocratesnoah
Enthusiast
hippocratesnoah began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Jul 2009
Device: Kindle DX
Quote:
Originally Posted by kovidgoyal View Post
@hippocrates Yeah it doesn't work for me either
here is the file link then:

error log
hippocratesnoah is offline  
Old 07-19-2009, 06:42 PM   #590
hippocratesnoah
Enthusiast
hippocratesnoah began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Jul 2009
Device: Kindle DX
azw to mobi fails

Hi,

I have another problem with b14. The conversion from kindle to mobi fails:

error shows this:

Convert book 19 of 25 (u"Reginald's Record Knock")
InputFormatPlugin: MOBI Input running on /Users/Jan/Documents/calibre Library/P. G. Wodehouse/Reginald's Record Knock (1155)/Reginald's Record Knock - P. G. Wodehouse.azw
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Parsing all content...
Parsing Reginald%27s%20Record%20Knock.html ...
Parsing styles.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 16.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
Compressing markup content...
Generating flat CTOC ...
Ignoring TOC entry with no href: Unnamed
No entries found in TOC ...
Writing unindexed mobi ...
Serializing images...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Applications/Werkzeuge/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/utils/ipc/worker.py", line 90, in main
File "calibre/gui2/convert/gui_conversion.pyo", line 17, in gui_convert
File "calibre/ebooks/conversion/plumber.pyo", line 731, in run
File "calibre/ebooks/mobi/output.pyo", line 132, in convert
File "calibre/ebooks/mobi/writer.pyo", line 366, in __call__
File "calibre/ebooks/mobi/writer.pyo", line 380, in _dump_stream
File "calibre/ebooks/mobi/writer.pyo", line 1474, in _generate_record0
AttributeError: 'MobiWriter' object has no attribute '_fcis_number'

Any ideas for a solution?

-h
hippocratesnoah is offline  
Old 07-19-2009, 07:13 PM   #591
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@hippocrates: Both your problems are caused by the same regression in MOBI output in b14. Will be fixed in b15
kovidgoyal is online now  
Old 07-19-2009, 07:51 PM   #592
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Released b15. All those people having trouble with converting to MOBi should update. Fixes a bunch of other miscellaneous minor bugs
kovidgoyal is online now  
Old 07-20-2009, 01:48 AM   #593
Abisha
Connoisseur
Abisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it isAbisha knows what time it is
 
Abisha's Avatar
 
Posts: 86
Karma: 2272
Join Date: Sep 2008
Location: Milwaukee, WI, U.S.A.
Device: Sony PRS-505, Sony PRS-950
b15 error: converting .mobi to .lrf using the default calibre conversion settings (I was able to successfully convert this same .mobi file using 0.5.14 build)

Code:
Convert book 1 of 1 (u'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
InputFormatPlugin: MOBI Input running on C:\Users\xxxxxxxxxxxx\Calibre Library\xxxxxxxxxx\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (227)\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing styles.css ...
Parsing Xxxxxxxx.html ...
File 'Xxxxxxxxx.html' missing <title/> element
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...

Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Traceback (most recent call last):
  File "worker.py", line 103, in <module>
  File "worker.py", line 90, in main
  File "calibre\gui2\convert\gui_conversion.pyo", line 17, in gui_convert
  File "calibre\ebooks\conversion\plumber.pyo", line 695, in run
  File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 125, in __call__
  File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 334, in flatten_spine
  File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 290, in flatten_node
  File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 290, in flatten_node
  File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 214, in flatten_node
ValueError: invalid literal for int() with base 10: '40px'
Abisha is offline  
Old 07-20-2009, 01:56 AM   #594
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Abisha: Should be fixed in the next release. Though to make sure, you should opena ticket and attach the MOBI file.
kovidgoyal is online now  
Old 07-20-2009, 03:04 AM   #595
Sonist
Apeist
Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.Sonist ought to be getting tired of karma fortunes by now.
 
Sonist's Avatar
 
Posts: 2,126
Karma: 381090
Join Date: Oct 2008
Location: The sunny part of California
Device: Generic virtual reality story-experiential device
Quote:
Originally Posted by kovidgoyal View Post
@Sonist: What OS are you on?
OS X, latest, fully updated.

P.S. It's still happening with Beta 6...15.

It happens, for example, with the PRC file Cloud of Witness.

Here is the error, just in case:

Sayers_Clouds of Witness.prc
Traceback (most recent call last):
File "calibre/ebooks/metadata/worker.pyo", line 38, in read_metadata_
File "calibre/ebooks/metadata/opf2.pyo", line 934, in render
File "calibre/utils/genshi/template/__init__.pyo", line 20, in <module>
File "calibre/utils/genshi/template/markup.pyo", line 24, in <module>
File "calibre/utils/genshi/template/eval.pyo", line 17, in <module>
File "compiler/__init__.pyo", line 28, in <module>
File "compiler/visitor.pyo", line 1, in <module>
ImportError: cannot import name ast

Last edited by Sonist; 07-20-2009 at 03:52 AM.
Sonist is offline  
Old 07-20-2009, 05:58 AM   #596
dpierron
calibre2opds guru
dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.
 
dpierron's Avatar
 
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
@font-face instruction is not written in the CSS

Hi Kovid,
In the latest beta (0.6.0.b15), I tried converting a PRC file into ePub ; I specified a custom CSS, and it contained "@font-face" instructions along with "font-family" :

Code:
@font-face {
    font-family: "Caecilia";
    font-weight: normal;
    font-style: normal;
    src: url(CaeciliaLTStd-Roman.ttf);
    }
@font-face {
    font-family: "Caecilia";
    font-weight: bold;
    font-style: normal;
    src: url(CaeciliaLTStd-Bold.ttf);
    }
@font-face {
    font-family: "Caecilia";
    font-weight: bold;
    font-style: italic;
    src: url(CaeciliaLTStd-BoldItalic.ttf);
    }
@font-face {
    font-family: "Caecilia";
    font-weight: normal;
    font-style: italic;
    src: url(CaeciliaLTStd-Italic.ttf);
    }
body {
    font-family: "Caecilia", serif;
    }
The "font-family" instruction was written to the CSS in the ".text" definition (instead of "body") :

Code:
.text {
    display: block;
    font-family: "Caecilia", serif;
    font-size: 0.83333em;
    margin-bottom: 0;
    margin-left: 15pt;
    margin-right: 15pt;
    margin-top: 0;
    page-break-before: always;
    text-align: justify
    }
It may be a feature or a bug, I don't know...

But the @font-face instructions never found their way into the resulting CSS... this is a bug, isn't it ? Should I open a ticket ?

Cheers, and thanks for your work,
David.
dpierron is offline  
Old 07-20-2009, 08:41 AM   #597
cloggy
Connoisseur
cloggy began at the beginning.
 
Posts: 78
Karma: 10
Join Date: Jul 2009
Location: Amstelveen, NL
Device: Kobo Aura HD, Sony PRS-T1
Just want to let you know that MOBI conversions failing with B14 are now running fine with B15. So that has definitely been resolved...;-)
cloggy is offline  
Old 07-20-2009, 10:42 AM   #598
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,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@dpierron: calibre does not aim to preserve your CSS class definitions, instead it tries to simplify them as much as possible to improve rendering speed on the device, which is why font-family was moved. As long as the correct *content* still has the font-family rule, it's not a bug.

As for font-face, yeah that's a bug, but it will probably only be fixed when I add support for font embedding to calibre, until then font-face is rather meaningless.
kovidgoyal is online now  
Old 07-20-2009, 10:44 AM   #599
dpierron
calibre2opds guru
dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.
 
dpierron's Avatar
 
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
Ok, I understand, thanks Kovid !
dpierron is offline  
Old 07-20-2009, 11:33 AM   #600
Colaveare
Member
Colaveare began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2009
Device: iphone
Greetings Kovid.
Since latest version (6.0.15b) I have the following error message on some books when trying to open metadata editing:
Spoiler:
---------------------------
ERROR: ERROR: Unhandled exception
---------------------------
<b>TypeError</b>:argument 1 of QDoubleSpinBox.setValue() has an invalid type
---------------------------
OK Hide Details...
---------------------------

Traceback (most recent call last):
File "main.py", line 997, in edit_metadata
File "calibre\gui2\dialogs\metadata_single.pyo", line 291, in __init__
TypeError: argument 1 of QDoubleSpinBox.setValue() has an invalid type

If you need me to open a ticket and link files just say so.

Last edited by Colaveare; 07-20-2009 at 11:39 AM.
Colaveare is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre metadata.calibre not allowing updates Chuckels550 Calibre 10 08-09-2010 05:12 PM
Using Calibre as a client for another Calibre instance? toddos Calibre 27 06-30-2010 04:57 AM
Sigil 0.2.0 betas available Valloric Sigil 98 05-03-2010 04:07 PM
cannot open calibre on osx 10.6-- "Calibre is already running" message jlip Calibre 4 01-02-2010 11:05 PM
calibre command line utilities and calibre defaults astrodad Calibre 2 08-07-2008 03:27 PM


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


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