View Single Post
Old 08-01-2011, 02:25 PM   #27
pmiles
Member
pmiles began at the beginning.
 
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 do have python-mechanize 0.1.11-1.1 installed.

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.

Quote:
Originally Posted by kovidgoyal View Post
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.
pmiles is offline   Reply With Quote