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 08-01-2011, 04:09 PM   #31
pmiles
Member
pmiles began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Hm... /bin/sh? I always had #!/bin/bash in my script. Here is the script:
Code:
#!/bin/bash

/usr/bin/python2.7 /opt/calibre/ebook-convert /home/calibre/recipes/economist.recipe economist.mobi --title="The Economist" --output-profile=kindle --username=xxxx --password=xxxx

calibre-smtp -r xxxx.com -e TLS --port 587 -u xxxx -p xxxx -a economist.mobi xxxx@xxxx.com xxxx@free.kindle.com Economist
Here is a crontab entry:
Code:
35 15 * * 4 /home/calibre/calibre-economist.sh >/dev/null 2>&1
This is how I execute the script manually and what I get:
Code:
sh calibre-economist.sh 
  File "/opt/calibre/ebook-convert", line 2
    path=`readlink -e $0`
                      ^
SyntaxError: invalid syntax
I've just found out something. I've just tested The Wall Street Journal recipe that was working perfectly under calibre 0.7.7 and python 2.6. So I tied it and got the same error:
Code:
       
calibre@kapiti:~$ /usr/bin/python2.7 /opt/calibre/ebook-convert /home/calibre/recipes/wsj.recipe wsj.mobi --title="The Wall Street Journal" --output-profile=kindle --username=xxxx --password=xxxx
  File "/opt/calibre/ebook-convert", line 2
    path=`readlink -e $0`
                      ^
SyntaxError: invalid syntax
Now, I tried it with python 2.6:
Code:
calibre@kapiti:~$ /opt/calibre/ebook-convert /home/calibre/recipes/wsj.recipe wsj.mobi --title="The Wall Street Journal" --output-profile=kindle --username=xxxx --password=xxxx

[...]

MOBI output written to /home/calibre/wsj.mobi
Output saved to   /home/calibre/wsj.mobi
It worked perfectly! Well, it posted some error like before, but non-critical:
Code:
Failed to download cover

[...]

Initial parse failed:
Parsing file 'feed_0/article_1/index.html' as HTML                                              
Forcing feed_0/article_1/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_0/article_14/index.html' as HTML                                             
Forcing feed_0/article_14/index.html into XHTML namespace                                       
Initial parse failed:                                                                           
Parsing file 'feed_5/index.html' as HTML                                                        
Forcing feed_5/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_0/article_3/index.html' as HTML                                              
Forcing feed_0/article_3/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_5/article_0/index.html' as HTML                                              
Forcing feed_5/article_0/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_0/article_12/index.html' as HTML                                             
Forcing feed_0/article_12/index.html into XHTML namespace                                       
Initial parse failed:                                                                           
Parsing file 'feed_1/index.html' as HTML                                                        
Forcing feed_1/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_0/article_0/index.html' as HTML                                              
Forcing feed_0/article_0/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_4/index.html' as HTML                                                        
Forcing feed_4/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_1/article_2/index.html' as HTML                                              
Forcing feed_1/article_2/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_2/index.html' as HTML                                                        
Forcing feed_2/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_3/article_2/index.html' as HTML                                              
Forcing feed_3/article_2/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_0/article_11/index.html' as HTML                                             
Forcing feed_0/article_11/index.html into XHTML namespace                                       
Initial parse failed:                                                                           
Parsing file 'feed_1/article_12/index.html' as HTML                                             
Forcing feed_1/article_12/index.html into XHTML namespace                                       
Initial parse failed:                                                                           
Parsing file 'feed_0/index.html' as HTML                                                        
Forcing feed_0/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_4/article_17/index.html' as HTML                                             
Forcing feed_4/article_17/index.html into XHTML namespace                                       
Initial parse failed:                                                                           
Parsing file 'feed_1/article_0/index.html' as HTML                                              
Forcing feed_1/article_0/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_0/article_7/index.html' as HTML                                              
Forcing feed_0/article_7/index.html into XHTML namespace                                        
Initial parse failed:                                                                           
Parsing file 'feed_3/index.html' as HTML                                                        
Forcing feed_3/index.html into XHTML namespace               
Forcing index.html into XHTML namespace
So, somehow other recipes work either with python 2.6 or 2.7, either with calibre 0.7.7 or 0.8.12 or with any combination of python and calibre versions. However it seems that the new Economist recipes just doesn't want to work with either calibre or either python.

Quote:
Originally Posted by kovidgoyal View Post
What are you using for /bin/sh? Change the hashbang at the top of the launcher scripts to /bin/bash
pmiles is offline   Reply With Quote
Old 08-01-2011, 04:24 PM   #32
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
sh calibre-economist.sh

Use

/bin/bash calibre-economist.sh
kovidgoyal is online now   Reply With Quote
Advert
Old 08-01-2011, 04:48 PM   #33
pmiles
Member
pmiles began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Code:
caibre@kapiti:~$ /bin/bash calibre-economist.sh 
  File "/opt/calibre/ebook-convert", line 2
    path=`readlink -e $0`
                      ^
SyntaxError: invalid syntax
One more thing: I installed calibre 0.8.12 on another box with Kubuntu 11.04. The Economist recipe work fine there. So there is something wrong with The Economist recipe, calibre and Debian Squeeze combination. It feels like there might be some missing/obsolete required package(s).

Quote:
Originally Posted by kovidgoyal View Post
sh calibre-economist.sh

Use

/bin/bash calibre-economist.sh
pmiles is offline   Reply With Quote
Old 08-01-2011, 05:28 PM   #34
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Either readlink or bash are too old on your system. You can hand edit the launcher scripts to replace the use of readlink with a hardcoded path. Stick a echo in the script on your working system to see what the path should be.
kovidgoyal is online now   Reply With Quote
Old 08-01-2011, 06:57 PM   #35
pmiles
Member
pmiles began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Either readlink or bash are too old on your system.
It doesn't look like it:

Debian Stable Squeeze

bash 4.1-3 (both Debian testing and unstable have bash 4.1-3)
coreutils 8.5.1 (both Debian testing and unstable have coreutils 8.5.1)
installed realpath 1.15 (both Debian testing and unstable have realpath 1.15) -- no change

Kubuntu 11.04

bash 4.2-0
coreutils 8.5.1
realpath not installed

Yeah, you can say that bash 4.1-3 is too old compared to Ubuntu but even Debian Unstable uses 4.1-3 !

Quote:
Originally Posted by kovidgoyal View Post
You can hand edit the launcher scripts to replace the use of readlink with a hardcoded path. Stick a echo in the script on your working system to see what the path should be.
OK, I am lost here.

Code:
$ bash -x calibre-economist.sh 
+ echo

+ /home/kk/calibre/ebook-convert /home/kk/Temp/calibre/recipes/economist.recipe /home/kk/Temp/calibre/economist.mobi '--title=The Economist' --output-profile=kindle --username=xxxx --password=xxxx
1% Converting input to HTML...
InputFormatPlugin: Recipe Input running
1% Fetching feeds...
Found section: The world this week
Found section: Leaders
Found section: Letters
Found section: Briefing
Found section: United States
Found section: The Americas
Found section: Asia
Found section: Middle East and Africa
Found section: Europe
Found section: Britain
Found section: International
Found section: Business
Found section: Briefing
Found section: Finance and Economics
Found section: Science and Technology
Found section: Books and Arts
Found section: Obituary
Found section: Economic and Financial Indicators
1% Got feeds from index page
1% Trying to download cover...
34% Downloading cover from http://media.economist.com/sites/default/files/imagecache/print-cover-thumbnail/print-covers/currentcoverus_large.jpg
1% Generating masthead...
Synthesizing mastheadImage
1% Starting download [5 thread(s)]...
1% Article downloaded: u'The ethics of warfare: Drones and the man'
1% Article downloaded: u"KAL's cartoon"
2% Article downloaded: u'Business this week'
2% Article downloaded: u'Debt and politics in America and Europe: Turning Japanese'
3% Article downloaded: u'Politics this week'
3% Article downloaded: u'Justice in Egypt: End impunity now'
3% Article downloaded: u'India and its near-abroad: New humility for the hegemon'
4% Article downloaded: u'The Big Mac index: Fast food for thought'
4% Article downloaded: u'Chinese internet companies: An internet with Chinese characteristics'
5% Article downloaded: u"Letters: On America's South, the euro crisis, Brazil, driving, education, Hungary, Ecuador, Rick Perry, Kolkata"
5% Article downloaded: u'The debt ceiling (continued): Glum and glummer'
5% Article downloaded: u'Health-care reform: Looking to Uncle Sam'
6% Article downloaded: u'America\u2019s embassies: First, dig your moat'
6% Article downloaded: u'Charter schools: The long turnaround'
7% Article downloaded: u'The Los Angeles River: Through culverts to the sea'
7% Article downloaded: u'Lexington: Connubial bliss in America'
8% Article downloaded: u'Canada and China: Giving the Lai'
8% Article downloaded: u'Health care in Brazil: An injection of reality'
8% Article downloaded: u'Censorship in Ecuador: L\xe8se-presidente'
9% Article downloaded: u'Japan\u2019s hopeless politics: Nuclear options'
9% Article downloaded: u'A train crash in China: A new third rail'
10% Article downloaded: u'India and Bangladesh: Embraceable you'
10% Article downloaded: u'Drones in Pakistan: Out of the blue'
10% Article downloaded: u'Xinjiang: Let them shoot hoops'
11% Article downloaded: u'Banyan: On a Bali high'
11% Article downloaded: u'Syria\u2019s turmoil: Reaching the capital'
12% Article downloaded: u'Saudi law: Nothing liberal yet'
12% Article downloaded: u'Swaziland: A king at bay'
12% Article downloaded: u'Egypt: Torrid post-revolutionary times'
13% Article downloaded: u'Kenya: Progress amid trepidation'
13% Article downloaded: u'Ireland\u2019s prime minister: Church and state'
14% Article downloaded: u'Justice in Ukraine: Democracy on trial'
14% Article downloaded: u'Germany and the euro: Angela the dragon non-slayer'
15% Article downloaded: u'The Horn of Africa: Chronicle of a famine foretold'
15% Article downloaded: u'Latvian politics: Two just men'
15% Article downloaded: u'Charlemagne: How much closer a union?'
16% Article downloaded: u'Manufacturing: A tale of two industries'
16% Article downloaded: u'The phone-hacking scandal: The hunt continues'
17% Article downloaded: u'Economic stumbles: Some safe haven'
17% Article downloaded: u'Amy Winehouse: A losing game'
17% Article downloaded: u'Teacher-training: Those who can, teach'
18% Article downloaded: u'The Liberal Democrats: Virtue unrewarded'
18% Article downloaded: u'Roadworks in London: Changing lanes'
19% Article downloaded: u'The conflict in Libya: The sands of time'
19% Article downloaded: u'Sanitation: Cholera and the super-loo'
19% Article downloaded: u'Face recognition: Anonymous no more'
20% Article downloaded: u'French newspapers: The revolution at Le Monde'
20% Article downloaded: u'Horrible Bosses: Truth is nicer than fiction'
21% Article downloaded: u'Keeping employees healthy: Trim staff, fat profits?'
21% Article downloaded: u'Germany\u2019s Mittelstand: Beating China'
22% Article downloaded: u'Indian firms abroad: Under the radar'
22% Article downloaded: u'Retail in Japan: Turning silver into gold'
22% Article downloaded: u'Schumpeter: The trouble with outsourcing'
23% Article downloaded: u'The oil business: Should BP split?'
23% Article downloaded: u'Buttonwood: Running out of options'
24% Article downloaded: u'Deutsche\u2019s new leadership: Troika at the top'
24% Article downloaded: u'America\u2019s fiscal union: Greek Americans'
24% Article downloaded: u'The euro crisis: Bazooka or peashooter?'
25% Article downloaded: u'The language of bubbles: Word herd'
25% Article downloaded: u'South Korea\u2019s longest banking strike: Rebels without a cause'
26% Article downloaded: u'Economics focus: Beefed-up burgernomics'
26% Article downloaded: u'The evolution of generosity: Welcome, stranger'
26% Article downloaded: u'Looking for the Higgs: Enemy in sight?'
27% Article downloaded: u'Hedge funds in Texas: Stetsons and spreadsheets'
27% Article downloaded: u'Prospecting for oil: Grains of truth'
28% Article downloaded: u'Art criticism and computers: Painting by numbers'
28% Article downloaded: u'War reporting: Ill met by moonlight'
29% Article downloaded: u'Evolution and consumer choice: Baby you can drive my genes'
29% Article downloaded: u'New fiction: Bird\u2019s eye view'
29% Article downloaded: u'Haiti: Broken and broken-hearted'
30% Article downloaded: u'The Pakistan army: The generals\u2019 story'
30% Article downloaded: u'Lucian Freud'
31% Article downloaded: u'Overview'
31% Article downloaded: u'The Proms: Life of Brian'
31% Article downloaded: u'The Economist commodity-price index'
32% Article downloaded: u'Output, prices and jobs'
32% Article downloaded: u'Multinationals with state shareholders'
33% Article downloaded: u'Global financial assets'
33% Article downloaded: u'Markets'
34% Article downloaded: u'Trade, exchange rates, budget balances and interest rates'
34% Feeds downloaded to /tmp/calibre_0.8.12_tmp_QSwVEW/calibre_0.8.12_cVDg9b_plumber/index.html
34% Download finished
Parsing all content...
File 'feed_14/article_5/index.html' missing <title/> element
File 'feed_0/article_2/index.html' missing <title/> element                                     
File 'feed_11/article_5/index.html' missing <title/> element                                    
File 'feed_1/article_1/index.html' missing <title/> element                                     
File 'feed_8/article_2/index.html' missing <title/> element                                     
File 'feed_13/article_2/index.html' missing <title/> element                                    
File 'feed_6/article_0/index.html' missing <title/> element                                     
File 'feed_7/article_4/index.html' missing <title/> element                                     
File 'feed_5/article_0/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_2/index.html' as HTML                                                        
Forcing feed_2/index.html into XHTML namespace                                                  
File 'feed_13/article_1/index.html' missing <title/> element                                    
File 'feed_4/article_3/index.html' missing <title/> element                                     
File 'feed_4/article_0/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_16/index.html' as HTML                                                       
Forcing feed_16/index.html into XHTML namespace                                                 
File 'feed_2/article_0/index.html' missing <title/> element                                     
File 'feed_14/article_1/index.html' missing <title/> element                                    
File 'feed_0/article_0/index.html' missing <title/> element                                     
File 'feed_11/article_4/index.html' missing <title/> element                                    
File 'feed_6/article_1/index.html' missing <title/> element                                     
File 'feed_4/article_1/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_7/index.html' as HTML                                                        
Forcing feed_7/index.html into XHTML namespace                                                  
File 'feed_0/article_1/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_3/index.html' as HTML                                                        
Forcing feed_3/index.html into XHTML namespace                                                  
File 'feed_10/article_1/index.html' missing <title/> element                                    
File 'feed_7/article_2/index.html' missing <title/> element                                     
File 'feed_12/article_3/index.html' missing <title/> element                                    
File 'feed_3/article_0/index.html' missing <title/> element                                     
File 'feed_9/article_5/index.html' missing <title/> element                                     
File 'feed_7/article_5/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_1/index.html' as HTML                                                        
Forcing feed_1/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_5/index.html' as HTML                                                        
Forcing feed_5/index.html into XHTML namespace                                                  
Initial parse failed:                                                                           
Parsing file 'feed_14/index.html' as HTML                                                       
Forcing feed_14/index.html into XHTML namespace                                                 
Initial parse failed:                                                                           
Parsing file 'feed_6/index.html' as HTML                                                        
Forcing feed_6/index.html into XHTML namespace                                                  
File 'feed_4/article_5/index.html' missing <title/> element                                     
File 'feed_1/article_4/index.html' missing <title/> element                                     
File 'feed_7/article_0/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_15/index.html' as HTML                                                       
Forcing feed_15/index.html into XHTML namespace                                                 
File 'feed_6/article_5/index.html' missing <title/> element                                     
File 'feed_4/article_4/index.html' missing <title/> element                                     
File 'feed_6/article_4/index.html' missing <title/> element                                     
File 'feed_7/article_3/index.html' missing <title/> element                                     
File 'feed_1/article_2/index.html' missing <title/> element                                     
File 'feed_9/article_4/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_0/index.html' as HTML                                                        
Forcing feed_0/index.html into XHTML namespace                                                  
File 'feed_15/article_0/index.html' missing <title/> element                                    
File 'feed_7/article_1/index.html' missing <title/> element                                     
File 'feed_4/article_2/index.html' missing <title/> element                                     
File 'feed_6/article_2/index.html' missing <title/> element                                     
File 'feed_8/article_1/index.html' missing <title/> element                                     
Forcing index.html into XHTML namespace                                                         
File 'feed_1/article_0/index.html' missing <title/> element                                     
File 'feed_5/article_2/index.html' missing <title/> element                                     
File 'feed_8/article_3/index.html' missing <title/> element                                     
File 'feed_16/article_2/index.html' missing <title/> element                                    
File 'feed_16/article_4/index.html' missing <title/> element                                    
File 'feed_11/article_2/index.html' missing <title/> element                                    
File 'feed_6/article_3/index.html' missing <title/> element                                     
File 'feed_9/article_7/index.html' missing <title/> element                                     
File 'feed_16/article_6/index.html' missing <title/> element                                    
File 'feed_11/article_6/index.html' missing <title/> element                                    
Initial parse failed:                                                                           
Parsing file 'feed_9/index.html' as HTML                                                        
Forcing feed_9/index.html into XHTML namespace                                                  
File 'feed_16/article_0/index.html' missing <title/> element                                    
Initial parse failed:                                                                           
Parsing file 'feed_8/index.html' as HTML                                                        
Forcing feed_8/index.html into XHTML namespace                                                  
File 'feed_16/article_3/index.html' missing <title/> element                                    
File 'feed_11/article_0/index.html' missing <title/> element                                    
File 'feed_5/article_1/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_4/index.html' as HTML                                                        
Forcing feed_4/index.html into XHTML namespace                                                  
File 'feed_16/article_1/index.html' missing <title/> element                                    
File 'feed_11/article_3/index.html' missing <title/> element                                    
File 'feed_14/article_2/index.html' missing <title/> element                                    
File 'feed_8/article_0/index.html' missing <title/> element                                     
File 'feed_11/article_1/index.html' missing <title/> element                                    
File 'feed_9/article_0/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_13/index.html' as HTML                                                       
Forcing feed_13/index.html into XHTML namespace                                                 
Initial parse failed:                                                                           
Parsing file 'feed_12/index.html' as HTML                                                       
Forcing feed_12/index.html into XHTML namespace                                                 
File 'feed_13/article_0/index.html' missing <title/> element                                    
File 'feed_12/article_5/index.html' missing <title/> element                                    
File 'feed_1/article_3/index.html' missing <title/> element                                     
File 'feed_12/article_4/index.html' missing <title/> element                                    
File 'feed_12/article_7/index.html' missing <title/> element                                    
Initial parse failed:                                                                           
Parsing file 'feed_11/index.html' as HTML                                                       
Forcing feed_11/index.html into XHTML namespace                                                 
File 'feed_12/article_2/index.html' missing <title/> element                                    
File 'feed_9/article_6/index.html' missing <title/> element                                     
File 'feed_12/article_1/index.html' missing <title/> element                                    
File 'feed_12/article_6/index.html' missing <title/> element                                    
File 'feed_8/article_4/index.html' missing <title/> element                                     
File 'feed_14/article_0/index.html' missing <title/> element                                    
File 'feed_12/article_0/index.html' missing <title/> element                                    
File 'feed_13/article_3/index.html' missing <title/> element                                    
File 'feed_11/article_7/index.html' missing <title/> element                                    
File 'feed_14/article_3/index.html' missing <title/> element                                    
File 'feed_9/article_3/index.html' missing <title/> element                                     
File 'feed_16/article_5/index.html' missing <title/> element                                    
File 'feed_14/article_4/index.html' missing <title/> element                                    
File 'feed_9/article_1/index.html' missing <title/> element                                     
File 'feed_9/article_2/index.html' missing <title/> element                                     
Initial parse failed:                                                                           
Parsing file 'feed_10/index.html' as HTML                                                       
Forcing feed_10/index.html into XHTML namespace                                                 
File 'feed_10/article_0/index.html' missing <title/> element                                    
Referenced file 'feed_17/index.html' not found                                                  
Referenced file '/topics/beijing' not found                                                     
Referenced file '/topics/education' not found                                                   
Referenced file '/topics/financial-markets' not found                                           
Referenced file '/topics/classical-music-1' not found                                           
Referenced file '/topics/economic-policy' not found                                             
Referenced file '/topics/balance-trade' not found                                               
Referenced file '/topics/deutsche-bank' not found                                               
Referenced file '/topics/texas' not found                                                       
Referenced file '/topics/brazil' not found                                                      
Referenced file '/topics/social-issues' not found                                               
Referenced file '/topics/transportation' not found                                              
Referenced file '/topics/media' not found                                                       
Referenced file '/topics/hedge-fund-management' not found                                       
Referenced file '/topics/germany' not found                                                     
Referenced file '/node/21524699' not found                                                      
Referenced file '/node/21524698' not found                                                      
Referenced file '/node/21524851' not found                                                      
Referenced file '/node/21524850' not found                                                      
Referenced file '/node/21524853' not found                                                      
Referenced file '/node/21524855' not found                                                      
Referenced file '/node/21524854' not found                                                      
Referenced file '/topics/public-finance' not found                                              
Referenced file '/node/21524810' not found                                                      
Referenced file '/node/21524910' not found                                                      
Referenced file '/topics/hurricane-katrina' not found                                           
Referenced file '/node/21524912' not found                                                      
Referenced file '/node/21524914' not found                                                      
Referenced file '/node/21524915' not found                                                      
Referenced file '/node/21524916' not found                                                      
Referenced file '/node/21524917' not found                                                      
Referenced file '/node/21524918' not found                                                      
Referenced file '/node/21524919' not found                                                      
Referenced file '/topics/asset-management' not found                                            
Referenced file '/topics/united-nations-conference-trade-and-development' not found             
Referenced file '/topics/ibm' not found                                                         
Referenced file '/node/21524866' not found                                                      
Referenced file '/topics/industries' not found                                                  
Referenced file '/topics/ireland' not found                                                     
Referenced file '/topics/government-spending' not found                                         
Referenced file '/topics/bashar-assad' not found                                                
Referenced file '/topics/domestic-policy' not found                                             
Referenced file '/topics/united-states' not found                                               
Referenced file '/node/21524864' not found                                                      
Referenced file '/topics/urumqi' not found                                                      
Referenced file '/topics/political-policy' not found                                            
Referenced file '/node/21524867' not found                                                      
Referenced file '/node/21524861' not found                                                      
Referenced file '/node/21524909' not found                                                      
Referenced file '/node/21524908' not found                                                      
Referenced file '/node/21524907' not found                                                      
Referenced file '/node/21524906' not found                                                      
Referenced file '/node/21524905' not found                                                      
Referenced file '/node/21524904' not found                                                      
Referenced file '/node/21524903' not found                                                      
Referenced file '/node/21524902' not found                                                      
Referenced file '/topics/josef-ackermann' not found                                             
Referenced file '/topics/dollar' not found                                                      
Referenced file '/topics/medicare' not found                                                    
Referenced file '/topics/democratic-party-united-states' not found                              
Referenced file '/topics/italy' not found                                                       
Referenced file '/topics/manufacturing' not found                                               
Referenced file '/topics/government-and-politics' not found                                     
Referenced file '/topics/england' not found                                                     
Referenced file '/topics/war-and-conflict' not found                                            
Referenced file '/topics/rick-perry' not found                                                  
Referenced file '/node/21524888' not found                                                      
Referenced file '/node/21524889' not found                                                      
Referenced file '/node/21524886' not found                                                      
Referenced file '/node/21524887' not found                                                      
Referenced file '/node/21524884' not found                                                      
Referenced file '/topics/bangladesh' not found                                                  
Referenced file '/node/21524882' not found                                                      
Referenced file '/node/21524883' not found                                                      
Referenced file '/node/21524880' not found                                                      
Referenced file '/node/21524869' not found                                                      
Referenced file '/topics/north-african-politics' not found                                      
Referenced file '/topics/hasina-wajed' not found                                                
Referenced file '/topics/commercial-banking' not found                                          
Referenced file '/topics/train-travel' not found                                                
Referenced file '/topics/angela-merkel' not found                                               
Referenced file '/topics/think-tanks' not found                                                 
Referenced file '/topics/recessions-and-depressions' not found                                  
Referenced file '/topics/rupert-murdoch' not found                                              
Referenced file '/node/21524873' not found                                                      
Referenced file '/node/21524872' not found                                                      
Referenced file '/topics/george-soros' not found                                                
Referenced file '/node/21524876' not found                                                      
Referenced file '/node/21524875' not found                                                      
Referenced file '/node/21524874' not found                                                      
Referenced file '/topics/australian-markets' not found                                          
Referenced file '/topics/investment-services' not found                                         
Referenced file '/node/21524879' not found                                                      
Referenced file '/node/21524878' not found                                                      
Referenced file '/topics/michael-gove' not found                                                
Referenced file '/topics/outsourcing' not found                                                 
Referenced file '/topics/monetary-policy' not found                                             
Referenced file '/topics/japan' not found                                                       
Referenced file '/topics/china' not found                                                       
Referenced file '/node/21524899' not found                                                      
Referenced file '/topics/diplomacy' not found                                                   
Referenced file '/topics/fossil-fuels' not found                                                
Referenced file '/node/21524895' not found                                                      
Referenced file '/node/21524894' not found                                                      
Referenced file '/node/21524896' not found                                                      
Referenced file '/node/21524893' not found                                                      
Referenced file '/topics/mumbai' not found                                                      
Referenced file '/topics/health-and-fitness' not found                                          
Referenced file '/topics/jobs-and-labour' not found                                             
Referenced file '/topics/government-bonds' not found                                            
Referenced file '/topics/sao-paulo' not found                                                   
Referenced file '/topics/central-banking' not found                                             
Referenced file '/topics/chinese-markets' not found                                             
Referenced file '/rights' not found                                                             
Referenced file '/topics/france' not found                                                      
Referenced file '/topics/politics' not found                                                    
Referenced file '/node/21524806' not found                                                      
Referenced file '/node/21524807' not found                                                      
Referenced file '/node/21524804' not found                                                      
Referenced file '/node/21524805' not found                                                      
Referenced file '/node/21524803' not found                                                      
Referenced file '/topics/taliban' not found                                                     
Referenced file '/topics/islam' not found                                                       
Referenced file '/topics/diabetes-1' not found                                                  
Referenced file '/node/21524808' not found                                                      
Referenced file '/node/21524809' not found                                                      
Referenced file '/topics/accidents-and-disasters' not found                                     
Referenced file '/node/21524700' not found                                                      
Referenced file '/topics/muslim-brotherhood' not found                                          
Referenced file '/topics/culture-and-lifestyle' not found                                       
Referenced file '/topics/united-kingdom' not found                                              
Referenced file '/topics/naoto-kan' not found                                                   
Referenced file '/topics/transport-and-logistics' not found                                     
Referenced file '/topics/european-politics' not found                                           
Referenced file '/topics/fixed-income-securities' not found                                     
Referenced file '/topics/australian-politics' not found                                         
Referenced file '/topics/financial-services' not found                                          
Referenced file '/topics/european-markets' not found                                            
Referenced file '/topics/boris-johnson' not found                                               
Referenced file '/topics/london' not found                                                      
Referenced file '/topics/bali' not found                                                        
Referenced file '/node/21524951' not found                                                      
Referenced file '/topics/india' not found                                                       
Referenced file '/node/21524911' not found                                                      
Referenced file '/topics/banking' not found                                                     
Referenced file '/topics/2011-japan-disaster' not found                                         
Referenced file '/topics/boeing' not found                                                      
Referenced file '/topics/kenya' not found                                                       
Referenced file '/topics/charter-schools' not found                                             
Referenced file '/node/21524817' not found                                                      
Referenced file '/node/21524811' not found                                                      
Referenced file '/topics/barack-obama' not found                                                
Referenced file '/topics/education-1' not found                                                 
Referenced file '/topics/business' not found                                                    
Referenced file '/node/21524818' not found                                                      
Referenced file '/topics/africa' not found                                                      
Referenced file '/topics/civilian-casualties' not found                                         
Referenced file '/node/21524885' not found                                                      
Referenced file '/topics/entertainment' not found                                               
Referenced file '/topics/kolkata' not found                                                     
Referenced file '/topics/drone-attacks' not found                                               
Referenced file '/topics/ramadan' not found                                                     
Referenced file '/topics/energy-industry' not found                                             
Referenced file '/topics/shenzhen' not found                                                    
Referenced file '/topics/journalism' not found                                                  
Referenced file '/topics/pakistan' not found                                                    
Referenced file '/node/21524940' not found                                                      
Referenced file '/topics/indian-politics' not found                                             
Referenced file '/topics/armed-forces' not found                                                
Referenced file '/topics/yuan' not found                                                        
Referenced file '/topics/health-care' not found                                                 
Referenced file '/topics/arts-entertainment-and-media' not found                                
Referenced file '/topics/smoking-and-tobacco' not found                                         
Referenced file '/node/21524822' not found                                                      
Referenced file '/topics/new-orleans' not found                                                 
Referenced file '/node/21524828' not found                                                      
Referenced file '/node/21524829' not found                                                      
Referenced file '/topics/teaching' not found                                                    
Referenced file '/topics/europe' not found                                                      
Referenced file '/topics/rudolph-giuliani' not found                                            
Referenced file '/topics/lesbian-and-gay-issues-1' not found                                    
Referenced file '/topics/los-angeles' not found                                                 
Referenced file '/topics/nigeria' not found                                                     
Referenced file '/topics/world-politics' not found                                              
Referenced file '/topics/rolls-royce' not found                                                 
Referenced file '/topics/egypt' not found                                                       
Referenced file '/topics/liberal-democrats-britain' not found                                   
Referenced file '/topics/hosni-mubarak' not found                                               
Referenced file '/topics/religion-1' not found                                                  
Referenced file '/topics/labour-unions' not found                                               
Referenced file '/node/21524924' not found                                                      
Referenced file '/topics/republican-party-united-states' not found                              
Referenced file '/topics/world-markets' not found                                               
Referenced file '/topics/democratic-party-japan' not found                                      
Referenced file '/topics/asia-pacific-politics' not found                                       
Referenced file '/topics/food-security' not found                                               
Referenced file '/node/21524937' not found                                                      
Referenced file '/node/21524934' not found                                                      
Referenced file '/node/21524932' not found                                                      
Referenced file '/node/21524933' not found                                                      
Referenced file '/topics/bp' not found                                                          
Referenced file '/node/21524931' not found                                                      
Referenced file '/topics/asia' not found                                                        
Referenced file '/topics/british-politics' not found                                            
Referenced file '/topics/haiti' not found                                                       
Referenced file '/topics/conocophillips' not found                                              
Referenced file '/topics/ethiopia' not found                                                    
Referenced file '/topics/islamism' not found                                                    
Referenced file '/topics/xinjiang' not found                                                    
Referenced file '/topics/international-relations' not found                                     
Referenced file '/topics/south-korea' not found                                                 
Referenced file '/topics/euro-zone' not found                                                   
Referenced file '/topics/national-debt' not found                                               
Referenced file '/topics/asia-pacific-markets' not found                                        
Referenced file '/topics/shanghai' not found                                                    
Referenced file '/topics/war-casualties' not found                                              
Referenced file '/topics/music' not found                                                       
Referenced file '/topics/libyan-politics' not found                                             
Referenced file '/topics/bond-markets' not found                                                
Referenced file '/topics/somalia' not found                                                     
Referenced file '/topics/economies' not found                                                   
Referenced file '/topics/european-central-bank' not found                                       
Referenced file '/node/21524701' not found                                                      
Referenced file '/node/21524868' not found                                                      
Referenced file '/node/21524921' not found                                                      
Referenced file '/node/21524920' not found                                                      
Referenced file '/node/21524923' not found                                                      
Referenced file '/node/21524922' not found                                                      
Referenced file '/node/21524928' not found                                                      
34% Running transforms on ebook...                                                              
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Cleaning up manifest...
Trimming unused files from manifest...
Creating MOBI Output...
67% Creating MOBI Output
Generating in-line TOC...
Applying case-transforming CSS...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Converting TOC for MOBI periodical indexing...
Serializing markup content...
  Compressing markup content...
  MOBI periodical specified, evaluating TOC for periodical conformance ...
  TOC structure conforms
Generating structured CTOC ...
  CNCX utilization: 1 record, 5% full
Indexing navPoints ...
Generating INDX ...
Serializing images...
MOBI output written to /home/kk/Temp/calibre/economist.mobi
Output saved to   /home/kk/Temp/calibre/economist.mobi
pmiles is offline   Reply With Quote
Advert
Old 08-01-2011, 07:28 PM   #36
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
According to that error your shell script interpreter thinks

path=`readlink -e $0`

is a syntax error. That can happen only if you have an ancient version of bash or you aren't using bash at all.

Look inside /opt/calibre/ebook-convert

it is a shell script (written in BASH). Edit it, replacing the invocation to readlink -e (which apparently your system doesn't support) with a hardcoded path that looks like

path=/opt/calibre/ebook-convert

I've spent enough time on this, you're on your own now. If you can't get it to work, then you just have to live without Economist on this computer.
kovidgoyal is online now   Reply With Quote
Old 08-02-2011, 04:30 AM   #37
pmiles
Member
pmiles began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
After completely purging calibre installation and installing it from scratch twice, after double checking all calibre required packages and breaking my Debian Stable system to include up-to-date Debian Testing packages that calibre requires -- I had no progress.

However, instead of passing /usr/bin/python2.7 to ebook-convert, I decided to make python2.7 default by
Code:
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10
It works beautifully!

Apparently, the problem was to have python2.6 as system default and trying to passthrough python2.7 to calibre -- it's just doesn't work.

I just hope there won't be any side-effects to having python2.7 as system default for Debian Stable.

Quote:
Originally Posted by kovidgoyal View Post
According to that error your shell script interpreter thinks

path=`readlink -e $0`

is a syntax error. That can happen only if you have an ancient version of bash or you aren't using bash at all.

Look inside /opt/calibre/ebook-convert

it is a shell script (written in BASH). Edit it, replacing the invocation to readlink -e (which apparently your system doesn't support) with a hardcoded path that looks like

path=/opt/calibre/ebook-convert

I've spent enough time on this, you're on your own now. If you can't get it to work, then you just have to live without Economist on this computer.
pmiles is offline   Reply With Quote
Old 08-04-2011, 05:41 PM   #38
tenioman
Junior Member
tenioman began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2011
Device: kindle 3
Quote:
Originally Posted by mrbianchi View Post
Thank you for your great work with the Economist recipe.

I'm using version 0.8.12, but I'm still missing some articles from the Briefing section.
On the current issue of the Economist there are two sections named Briefing.
The first contains one article, the other contains three articles.

Calibre is only getting the article from first section.
The same thing is happening to me.

Also, the cover of the economist is showing the week before's cover not the current cover.
tenioman is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Improved recipe for hungarian '168 óra' ironcat Recipes 1 03-24-2011 06:53 AM
Economist recipe jdomingos76 Recipes 1 03-08-2011 08:33 AM
Improved recipe for Le Monde veezh Recipes 0 02-25-2011 04:14 AM
Economist Free Recipe geneaber Calibre 10 12-31-2009 03:45 PM
Problems with Economist recipe 0.5.1 MTBSJC Calibre 7 03-23-2009 01:54 PM


All times are GMT -4. The time now is 11:04 PM.


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