Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2011, 06:31 PM   #1
g8dhe
Member
g8dhe began at the beginning.
 
g8dhe's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
Computer Active recipe from command line ?

Hi, Just started using the recipes and very much impressed.
However I am having a problem with one specific recipe: Computer Active.
When its run from within Calibre all is OK and the feed appears as normal.
However when run from the command line (as I do from the small home server with all the other recipes) the Computer Active feed fails ?
The headers and TOC appear but the individual article feeds fail.
So what's different between running under the GUI and scheduling separately from the command line ?
There are some error messages that appear as follows;
Code:
M:\BooksAndText\Calibre Library\Calibre2>ebook-convert computer_active.recipe co
mputer_active.mobi --output-profile kindle --test -vv --debug-pipeline ca-debug>
> ca-debug.log
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]
ERROR:calibre.css:Property: Invalid value for "CSS Fonts Module Level 3 @font-fa
ce properties/CSS Level 2.1" property: bold [31:139: font-style]

M:\BooksAndText\Calibre Library\Calibre2>
I've attached the full debug log file "ca-debug.log" file below as a text file.

Thoughts and assistance appreciated!
Attached Files
File Type: txt Ca-debug.txt (23.9 KB, 150 views)
g8dhe is offline   Reply With Quote
Old 10-12-2011, 10:23 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by g8dhe View Post
what's different between running under the GUI and scheduling separately from the command line ?
There's not supposed to be any (much?) difference. That said, I've seen reports of differences, and replicated them only once, but it was a long time ago. I haven't tracked any problems like this down, but I think they may relate to the conversion from the XHTML stage to the final format. I'd suggest you run:
Code:
ebook-convert computer_active.recipe outputdir --test -vv > ca-debug.log
Then see what the XHTML results are in outputdir when viewed in the browser. If the recipe runs to completion and the outputdir looks good in the browser, you will know the problem is in the conversion stage after that.
Starson17 is offline   Reply With Quote
Advert
Old 10-13-2011, 06:55 AM   #3
g8dhe
Member
g8dhe began at the beginning.
 
g8dhe's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
Thanks, I have tried that and have the debug directories, but looking under the "input" directory there doesn't appear to be anything downloaded, it creates an index.html under each feed_n & article_n which contains the correct URL for the feed but there are no other files to contain the text of the article, if I click the link in the index file that has been created which says "This article downloaded from" it does indeed take you to the article in question, but no where can I find the file that contains those download pages - so I assume that for some reason the pages are not being fetched when its run from the command line ? Other recipes are fine so a little bemused at present, as to where to go from here ?
g8dhe is offline   Reply With Quote
Old 10-13-2011, 09:03 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by g8dhe View Post
Thanks, I have tried that and have the debug directories, but looking under the "input" directory there doesn't appear to be anything downloaded, it creates an index.html under each feed_n & article_n which contains the correct URL for the feed but there are no other files to contain the text of the article, if I click the link in the index file that has been created which says "This article downloaded from" it does indeed take you to the article in question, but no where can I find the file that contains those download pages - so I assume that for some reason the pages are not being fetched when its run from the command line ? Other recipes are fine so a little bemused at present, as to where to go from here ?
If you are saying that when run from the command line it fetches nothing, not even in the input directory (I'm pretty sure that's the same as running the command line I suggested, but I'd test mine anyway) but when run from the GUI it works? I'd be absolutely sure you are running the same recipe in both cases then. Grab a clean copy to make sure. Do not grab from the backup stored locally or use an older copy for your command line test.

If you are 100% sure that you've run the same recipe in both cases, I'll test at this end to see if I can replicate it.
Starson17 is offline   Reply With Quote
Old 10-13-2011, 12:05 PM   #5
g8dhe
Member
g8dhe began at the beginning.
 
g8dhe's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
Thanks Starson17, that was the problem, an old version, I pulled it out of the Zip a few months back and it didn't work then, so put it to one side to investigate after a holiday, and have only just got back to it!
So final question - for the time being - what's the best way of automating getting the latest version of a recipe are they downloadable, rather than relying on the Zip copy ?
g8dhe is offline   Reply With Quote
Advert
Old 10-14-2011, 11:21 AM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by g8dhe View Post
Thanks Starson17, that was the problem, an old version, I pulled it out of the Zip a few months back and it didn't work then, so put it to one side to investigate after a holiday, and have only just got back to it!
So final question - for the time being - what's the best way of automating getting the latest version of a recipe are they downloadable, rather than relying on the Zip copy ?
You can always grab builtin recipes online. There's a link in my sticky to the code for all recipes. When Kovid updates a recipe, I believe that link points to the new code.

When run from the GUI, the current version of a builtin recipe is always grabbed. I don't know for certain how this process interfaces with the command line. I believe you can run a builtin recipe by recipe name and it will do the same fetch, while if you run it pointing to a local recipe filename it will use that local file, not the online updated version. I've never actually tested this out, so report back if you figure it out for sure.

Finally, I suspect you could emulate the procedure that a GUI run builtin uses to grab the current version if you can't make one of the above work for you.
Starson17 is offline   Reply With Quote
Old 10-14-2011, 08:19 PM   #7
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,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Using a recipe title from the command line will fetch the latest, using a filename will not.
kovidgoyal is offline   Reply With Quote
Old 10-16-2011, 06:35 AM   #8
g8dhe
Member
g8dhe began at the beginning.
 
g8dhe's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
Many thanks Starson 17 and Kovid, I'll change all the file names to the relevant titles - I hadn't spotted that in the manual.
g8dhe is offline   Reply With Quote
Old 10-18-2011, 07:11 AM   #9
g8dhe
Member
g8dhe began at the beginning.
 
g8dhe's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Location: Worthing, West Sussex, UK
Device: Kindle + Nexus 7
Quote:
Originally Posted by kovidgoyal View Post
Using a recipe title from the command line will fetch the latest, using a filename will not.
OK that had me going for a while , just specifying the "Title" didn't work , but specifying the "file name.recipe" without the recipe file being present makes it go off and fetch the latest version

Obvious when you know it - any chance of it being included in the command line documentation I wonder
g8dhe is offline   Reply With Quote
Old 10-18-2011, 07:25 AM   #10
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,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You want

"Title.recipe"
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line - HOW? bookfanmd Calibre 19 01-12-2013 09:17 AM
Need help using command line tsger Recipes 2 07-16-2011 03:23 AM
How to use recipe with subscription from command line miwie Calibre 3 11-23-2010 04:10 AM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM


All times are GMT -4. The time now is 05:31 PM.


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