You are not logged in.

#1 2008-09-19 16:14:36

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Calibre - Very nice eBook app

This is a wonderful OpenSource tool to deal with all kinds of eBooks and ebook reader devices.
I have no knowledge of python and I tried to build from the source (without writing my PKGBUILD), but it doesn't work.

Please go to the following link and help me write a PKGBUILD

http://calibre.kovidgoyal.net/download_generic


MANY MANY thanks!

Offline

#2 2008-09-28 08:36:51

Shirakawasuna
Member
Registered: 2007-03-09
Posts: 94

Re: Calibre - Very nice eBook app

I have this one very close to working.

# Contributor: Nick B <Shirakawasuna at gmail _dot_com>
pkgname=calibre
pkgver=0.4.86
pkgrel=1
pkgdesc="An e-book library management application."
arch=('i686')
url="http://calibre.kovidgoyal.net/"
license=('GPL3')
makedepends=('setuptools' 'pil' 'pyqt')
depends=('python' 'qt')
source=(http://calibre.kovidgoyal.net/downloads/calibre-$pkgver.tar.gz)
md5sums=('8ffad2b2456d23f4c55efe6212bd222b')

build() {

cd $startdir/src/calibre-$pkgver
python setup.py build
python setup.py install --root $startdir/pkg

}

It errors out on the last step with this:

/bin/sh: calibre_postinstall: command not found
Traceback (most recent call last):
  File "setup.py", line 433, in <module>
    subprocess.check_call('calibre_postinstall', shell=True)
  File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'calibre_postinstall' returned non-zero exit status 127

Offline

#3 2008-09-28 10:10:52

xen
Member
Registered: 2008-08-17
Posts: 56

Re: Calibre - Very nice eBook app

Looks like a nice piece of software! Are portable eBook readers starting to gain popularity now?


A wannabe game-developer.
My Blog
My GitHub

Offline

#4 2008-09-29 07:58:32

morellik
Member
From: Italy
Registered: 2007-04-05
Posts: 43

Re: Calibre - Very nice eBook app

Shirakawasuna wrote:

I have this one very close to working.
It errors out on the last step with this:

/bin/sh: calibre_postinstall: command not found
Traceback (most recent call last):
  File "setup.py", line 433, in <module>
    subprocess.check_call('calibre_postinstall', shell=True)
  File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'calibre_postinstall' returned non-zero exit status 127

I receive the same message. I opened a ticket to the calibre developer site and I'm waiting for a response.

Offline

#5 2008-09-29 11:31:10

morellik
Member
From: Italy
Registered: 2007-04-05
Posts: 43

Re: Calibre - Very nice eBook app

The problem was that the calibre_postinstall is installed,  but in your_path/abs/local/calibre/pkg/usr/bin. So you have to set a PATH with the new value. But there are other problems related to that. When you are able to execute calibre_postinstall it search for a calibre installation and exits with errors.
I tried a lot of things but I'm unable to find something that works.

Offline

#6 2008-09-29 12:09:42

ould
Member
Registered: 2007-05-22
Posts: 124

Re: Calibre - Very nice eBook app

I have written a PKGBUILD for this which works for me on my PC. I have two actually, one for the bzr version and one for the stable version. Mind you I haven't tried them for a few weeks but they were working fine at last check.

Here you go bzr first:

# Contributor Kevin Ould (crippler75@gmail.com)

pkgname=calibre-bzr
pkgver=1644
pkgrel=1
pkgdesc="an e-book library manager"
arch=('i686' 'x86_64')
url="http://calibre.kovidgoyal.net/"
license=('GPL')
depends=('python' 'setuptools' 'python-mechanize' 'python-lxml' 'pil')
makedepends=('bzr')
conflicts=()
source=()
md5sums=()

_bzrtrunk=http://bzr.kovidgoyal.net/code/calibre/trunk
_bzrmod=calibre

build() {
  cd $srcdir

msg "Connecting to the server...."

  if [ ! -d ./$_bzrmod ]; then
    bzr branch $_bzrtrunk $_bzrmod -r $pkgver
  else
   cd $_bzrmod && bzr merge
  fi

msg "BZR checkout done or server timeout"
  msg "Starting make..."

  [ -d ./$_bzrmod-build ] && rm -fr ./$_bzrmod-build
  cp -r ./$_bzrmod ./$_bzrmod-build

  cd ./$_bzrmod-build
  python setup.py build
  python setup.py install --root=$pkgdir

  rm -rf $srcdir/$_bzrmod-build
}

Here is stable:

# Contributor: Kevin Ould (crippler75@gmail.com)

pkgname=calibre
pkgver=0.4.83
pkgrel=1
pkgdesc="an e-book library manager"
arch=('i686' 'x86_64')
url="http://calibre.kovidgoyal.net/"
license=('GPL')
depends=('python' 'setuptools' 'python-mechanize' 'python-lxml' 'pil')
makedepends=()
conflicts=(calibre-bzr)
source=( https://calibre.kovidgoyal.net/downloads/$pkgname-$pkgver.tar.bz2 )
md5sums=()


build() {
        cd "$srcdir/$pkgname-$pkgver"
        python setup.py install --root="$pkgdir" || return 1
        }

For the stable version you will have to manually update the pkgver with whichever version you are trying to build. As you can see when I tested it the latest version was 0.4.83. The bzr version should grab the latest version automagically. Hope this helps!

UPDATE : I tried updating my PKGBUILD for latest stable and got the same issue as you guys posted above. 0.4.83 which my PKGBUILD was written for should still work though. :-) Looks like kovid made some changes which break my PKGBUILDS. Maybe bzr will still work.

Kevin

Last edited by ould (2008-09-29 12:24:18)

Offline

#7 2008-09-29 12:47:21

morellik
Member
From: Italy
Registered: 2007-04-05
Posts: 43

Re: Calibre - Very nice eBook app

That's works for 0.4.83 that doesn't use calibre_postinstall. Now there is the 0.4.88 that use calibre_postinstall that causes problems.

Offline

#8 2008-09-29 15:33:49

ould
Member
Registered: 2007-05-22
Posts: 124

Re: Calibre - Very nice eBook app

morellik wrote:

That's works for 0.4.83 that doesn't use calibre_postinstall. Now there is the 0.4.88 that use calibre_postinstall that causes problems.

Yeah i noticed that, do you know what this post_install actually does? It doesn't seem to do much by looking at it but I am not very knowledgable in python. Unless you need a feature in 0.4.88 then I would suggest using 0.4.83 as it seems to work fine for me. When I try and update the bzr version is gets through the build but I did see an error regarding postinstall but I am not at home so can't try it and see if it actually works though.

Kevin

Offline

#9 2008-09-29 22:48:44

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Calibre - Very nice eBook app

I managed to make a working package for it. Feel free to test it and provide useful feedback. smile

(I won't be submitting it to the AUR, as I don't have much interest in it. If anyone else wants to do that, go ahead wink)

calibre-0.4.88-1.tar.gz

Offline

#10 2008-09-30 00:48:20

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Calibre - Very nice eBook app

I would also like to point out another ebook reader. reed.

reed is a console based ebook reader. It works wonders on text files. Here is the source repo.
http://www.sfr-fresh.com/unix/privat/reed-5.4.tar.gz/

It looks like development has stopped, but it may be pretty close to feature complete. If you need a good command line ebook reader. Try this out.

Offline

#11 2008-09-30 07:27:21

morellik
Member
From: Italy
Registered: 2007-04-05
Posts: 43

Re: Calibre - Very nice eBook app

foutrelis wrote:

I managed to make a working package for it. Feel free to test it and provide useful feedback. smile

(I won't be submitting it to the AUR, as I don't have much interest in it. If anyone else wants to do that, go ahead wink)

calibre-0.4.88-1.tar.gz

Yeah big_smile Seems to works fine. I'll put it on AUR. Thanks.

Offline

#12 2008-10-31 17:57:29

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: Calibre - Very nice eBook app

timetrap wrote:

I would also like to point out another ebook reader. reed.

reed is a console based ebook reader. It works wonders on text files. Here is the source repo.
http://www.sfr-fresh.com/unix/privat/reed-5.4.tar.gz/

Just FYI, there's a package for reed in AUR. But thanks anyway for the additional mirror of the source. smile


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

Board footer

Powered by FluxBB