07-29-2011, 05:31 PM | #16 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont use the RSS based recipe, use the normal one.
|
07-29-2011, 05:32 PM | #17 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jul 2011
Device: Kindle3
|
aha, sorry for the false alarm!
|
Advert | |
|
07-30-2011, 01:34 AM | #18 |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
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. |
07-30-2011, 01:45 AM | #19 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2011
Device: kindle
|
Hi, first apologies. Looks like I was lucky last week, didn't realize that the formula changed and I was away from my main Calibre machine. Thanks for the updated recipe!
As for the formatting, it looks like the default recipe now has proper formatting (similar to print and web) so there's no need for my custom recipe. The only thing missing in the default is the removal of "related items". Code:
dict(attrs={'class':['dblClkTrk', 'ec-article-info', 'share_inline_header', 'related-items']}), |
08-01-2011, 12:09 AM | #20 |
Member
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
|
Please help!
I've been using The Economist recipe for over a month on a headless Debian Calibre server. Last Thursday I got: Code:
Exception: Could not find any articles. Has your subscription expired Code:
ebook-convert /home/calibre/recipes/economist.recipe economist.mobi --title="The Economist" --output-profile=kindle --username=xxxx --password=xxxx 1% Converting input to HTML... InputFormatPlugin: Recipe Input running Traceback (most recent call last): File "/usr/bin/ebook-convert", line 19, in <module> sys.exit(main()) File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 254, in main plumber.run() File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 815, in run accelerators, tdir) File "/usr/lib/calibre/calibre/customize/conversion.py", line 211, in __call__ log, accelerators) File "/usr/lib/calibre/calibre/web/feeds/input.py", line 67, in convert recipe = compile_recipe(self.recipe_source) File "/usr/lib/calibre/calibre/web/feeds/recipes/__init__.py", line 47, in compile_recipe module = imp.load_module(os.path.splitext(os.path.basename(temp))[0], *module) File "/tmp/calibre_0.7.7_U3677u_recipes/recipe0.py", line 13, in <module> from collections import OrderedDict ImportError: cannot import name OrderedDict |
Advert | |
|
08-01-2011, 12:53 AM | #21 |
Grand Sorcerer
Posts: 12,256
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
What version of Python is on that box? From looking at the bug tracker I found https://bugs.launchpad.net/calibre/+bug/761226 which seems to imply needing Python 2.7 or above for OrderedDict .
|
08-01-2011, 07:44 AM | #22 |
Member
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
|
I have python 2.6.6 and calibre 0.7.7 from Debian repositories. I know, its not up-to-date but all other recipes work flawlessly. So, over the weekend The Economist recipe raised python requirement?
|
08-01-2011, 08:58 AM | #23 |
Grand Sorcerer
Posts: 12,256
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
No idea... but maybe the updated recipe did ?
|
08-01-2011, 11:10 AM | #24 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre has needed python 2.7 for months and months.
|
08-01-2011, 01:12 PM | #25 |
Member
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
|
OK, I've installed python2.7 but I've kept python2.6 as default for my system. How do I alter environmental variables for ebook-convert make it use python2.7? I looked through /usr/share/calibre/default_tweaks.py but couldn't find anything. Thanks.
|
08-01-2011, 01:45 PM | #26 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the binary calibre install, or change the hashbangs on the scripts that launch the calibre utilities. And you should not update python without updating calibre. There's not guarantee that 0.7.7 is python 2.7 compatible.
|
08-01-2011, 02:25 PM | #27 |
Member
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
|
OK, python2.7 gives:
Code:
calibre@kapiti:~$ /usr/bin/python2.7 /usr/bin/ebook-convert /home/calibre/recipes/economist.recipe economist.mobi --title="The Economist" --output-profile=kindle --username=xxxx --password=xxxx Traceback (most recent call last): File "/usr/bin/ebook-convert", line 18, in <module> from calibre.ebooks.conversion.cli import main File "/usr/lib/calibre/calibre/__init__.py", line 22, in <module> import mechanize ImportError: No module named mechanize I am still using calibre 0.7.7 from repositories with python2.6 for all my other recipes, which work fine. I just need The Economist recipe to work somehow. |
08-01-2011, 02:27 PM | #28 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the calibre binary install.
|
08-01-2011, 03:02 PM | #29 |
Member
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
|
So I did the binary install. Now I am getting this:
Code:
calibre@kapiti:~$ /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 File "/opt/calibre/ebook-convert", line 2 path=`readlink -e $0` ^ SyntaxError: invalid syntax |
08-01-2011, 03:19 PM | #30 |
creator of calibre
Posts: 44,001
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What are you using for /bin/sh? Change the hashbang at the top of the launcher scripts to /bin/bash
|
|
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 |