View Single Post
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