Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2008, 02:25 PM   #1
Xpi6
Qsay Master
Xpi6 began at the beginning.
 
Xpi6's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2006
Location: Japan
Device: iWish!
calibre install fails on Ubuntu hardy

Hi Kovid, I already installed the windows version at work, and it looks useful (I have some idea/request/bug tickets that I'll file later).
However, when I tried installing at home on a Ubuntu hardy box, using the method on http://calibre.kovidgoyal.net/download_ubuntu
(which I do realise is titled "Ubuntu Interpid Ibex" <-- sp? "Intrepid" surely!), it barfed as follows on the last step:
Code:
$ sudo calibre_postinstall
Trying to setup udev rules...
 * Restarting Hardware abstraction layer hald                                                                                          [ OK ] 
Setting up bash completion... failed
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 168, in setup_completion
  File "build/bdist.linux-i686/egg/calibre/gui2/lrf_renderer/main.py", line 1, in <module>
  File "build/bdist.linux-i686/egg/calibre/gui2/library.py", line 18, in <module>
  File "build/bdist.linux-i686/egg/calibre/library/database.py", line 11, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/meta.py", line 11, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/lit.py", line 12, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/lit/reader.py", line 371, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/lit/reader.py", line 374, in LitReader
TypeError: 'resolve_entities' is an invalid keyword argument for this function
Traceback (most recent call last):
  File "/usr/bin/calibre_postinstall", line 8, in <module>
    load_entry_point('calibre==0.4.89', 'console_scripts', 'calibre_postinstall')()
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 430, in post_install
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 304, in setup_completion
UnboundLocalError: local variable 'manifest' referenced before assignment
Before digging into anything myself, I'm wondering if this is simply a "hardy" vs "intrepid" problem (in which case I guess I'll just have to upgrade sooner rather than later), or some other problem with a known solution?
Xpi6 is offline   Reply With Quote
Old 10-02-2008, 02:36 PM   #2
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
you need python-lxml >= 2.0.5
kovidgoyal is offline   Reply With Quote
Advert
Old 10-02-2008, 05:28 PM   #3
IreneDelse
Groupie
IreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enough
 
IreneDelse's Avatar
 
Posts: 154
Karma: 589
Join Date: Nov 2007
Location: Paris
Device: Bookeen Cybook Gen3 & Opus
I've had the same problem, and my version of python is 2.5.2.



Code:
~$ sudo calibre_postinstall
Trying to setup udev rules...
 * Restarting Hardware abstraction layer hald                            [ OK ] 
Setting up bash completion... failed
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 168, in setup_completion
  File "build/bdist.linux-i686/egg/calibre/gui2/lrf_renderer/main.py", line 1, in <module>
  File "build/bdist.linux-i686/egg/calibre/gui2/library.py", line 18, in <module>
  File "build/bdist.linux-i686/egg/calibre/library/database.py", line 11, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/meta.py", line 11, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/lit.py", line 12, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/lit/reader.py", line 371, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/lit/reader.py", line 374, in LitReader
TypeError: 'resolve_entities' is an invalid keyword argument for this function
Traceback (most recent call last):
  File "/usr/bin/calibre_postinstall", line 8, in <module>
    load_entry_point('calibre==0.4.89', 'console_scripts', 'calibre_postinstall')()
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 430, in post_install
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 304, in setup_completion
UnboundLocalError: local variable 'manifest' referenced before assignment
I run Ubuntu Hardy. Maybe I'll just wait the release of Ibex.
IreneDelse is offline   Reply With Quote
Old 10-02-2008, 06:20 PM   #4
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
you also need python-lxml >= 2.0.5
kovidgoyal is offline   Reply With Quote
Old 10-03-2008, 04:51 AM   #5
Xpi6
Qsay Master
Xpi6 began at the beginning.
 
Xpi6's Avatar
 
Posts: 5
Karma: 10
Join Date: Mar 2006
Location: Japan
Device: iWish!
Quote:
Originally Posted by kovidgoyal View Post
you need python-lxml >= 2.0.5
Thanks, I'll either upgrade python-lxml or hardy->intrepid when I get home.
Xpi6 is offline   Reply With Quote
Advert
Old 10-03-2008, 09:43 AM   #6
IreneDelse
Groupie
IreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enoughIreneDelse will become famous soon enough
 
IreneDelse's Avatar
 
Posts: 154
Karma: 589
Join Date: Nov 2007
Location: Paris
Device: Bookeen Cybook Gen3 & Opus
I updated python-lxml but the latest Hardy version is 1.3.6.1 so I'll wait and install Ibex.

Thanks, kovid!
IreneDelse is offline   Reply With Quote
Old 11-13-2008, 04:57 AM   #7
bonaldo2000
Enthusiast
bonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy blue
 
Posts: 33
Karma: 13208
Join Date: Aug 2008
Device: prs-505
Quote:
Originally Posted by kovidgoyal View Post
you also need python-lxml >= 2.0.5
I have intrepid and have python-lxml installed. I am getting the same error as the OP, however.
As far as I can see version: 2.1.1-1 of python-lxml is installed.
Any ideas?

Last edited by bonaldo2000; 11-13-2008 at 04:59 AM.
bonaldo2000 is offline   Reply With Quote
Old 11-13-2008, 12:46 PM   #8
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
Are you sure? Post the error message
kovidgoyal is offline   Reply With Quote
Old 11-13-2008, 04:36 PM   #9
bonaldo2000
Enthusiast
bonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy blue
 
Posts: 33
Karma: 13208
Join Date: Aug 2008
Device: prs-505
I'm pretty sure. Here is the error message:
Code:
Trying to setup udev rules...
 * Restarting Hardware abstraction layer hald                            [ OK ] 
Setting up bash completion... failed
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 172, in setup_completion
  File "build/bdist.linux-i686/egg/calibre/gui2/lrf_renderer/main.py", line 18, in <module>
  File "build/bdist.linux-i686/egg/calibre/gui2/library.py", line 17, in <module>
  File "build/bdist.linux-i686/egg/calibre/library/database2.py", line 19, in <module>
  File "build/bdist.linux-i686/egg/calibre/library/database.py", line 11, in <module>
  File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/meta.py", line 23, in <module>
  File "build/bdist.linux-i686/egg/calibre/libunrar.py", line 26, in <module>
  File "build/bdist.linux-i686/egg/calibre/__init__.py", line 89, in load_library
  File "/usr/lib/python2.5/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.5/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libunrar.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/calibre_postinstall", line 8, in <module>
    load_entry_point('calibre==0.4.104', 'console_scripts', 'calibre_postinstall')()
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 442, in post_install
  File "build/bdist.linux-i686/egg/calibre/linux.py", line 316, in setup_completion
UnboundLocalError: local variable 'manifest' referenced before assignment
bonaldo2000 is offline   Reply With Quote
Old 11-13-2008, 04:50 PM   #10
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
no that error indicates you're missing libunrar.so
kovidgoyal is offline   Reply With Quote
Old 11-13-2008, 06:06 PM   #11
bonaldo2000
Enthusiast
bonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy blue
 
Posts: 33
Karma: 13208
Join Date: Aug 2008
Device: prs-505
Ah, yeah, sorry, you are right.
Unfortunately it is not installed when I install unrar.

Anyone know how to get libunrar.so on Ubuntu Intrepid?
bonaldo2000 is offline   Reply With Quote
Old 11-13-2008, 11:54 PM   #12
tcv
Addict
tcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enough
 
tcv's Avatar
 
Posts: 330
Karma: 596
Join Date: Oct 2006
I'm wondering how I got it. I have Intrepid. It was an upgrade from Hardy, but I didn't install unrar and still don't have it installed (at least according to synaptic.)

kovidgoyal, do you happen to know how I check to be sure I have it or not? I did a file system search for "libunrar" and only found an item inside Calibre downloaded materials.
tcv is offline   Reply With Quote
Old 11-13-2008, 11:56 PM   #13
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
just upgrade to 105, libunrar should now be an optional dependency
kovidgoyal is offline   Reply With Quote
Old 11-14-2008, 07:06 AM   #14
bonaldo2000
Enthusiast
bonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy bluebonaldo2000 can differentiate black from dark navy blue
 
Posts: 33
Karma: 13208
Join Date: Aug 2008
Device: prs-505
Ok, great, that solved my original problem. Thanks a lot for the VERY fast fix!

However when I start calibre, I am asked to choose the directory for my books. I choose the directory that I created with calibre in Windows and which contains some books.
Unfortunately, I get this error:
Code:
Traceback (most recent call last):
  File "/usr/bin/calibre", line 8, in <module>
    load_entry_point('calibre==0.4.105', 'gui_scripts', 'calibre')()
  File "build/bdist.linux-i686/egg/calibre/gui2/main.py", line 1294, in main
  File "build/bdist.linux-i686/egg/calibre/gui2/main.py", line 237, in __init__
  File "build/bdist.linux-i686/egg/calibre/library/database2.py", line 1169, in migrate_old
  File "build/bdist.linux-i686/egg/calibre/library/sqlite.py", line 106, in run
sqlite3.IntegrityError: PRIMARY KEY must be unique
What could that be?
bonaldo2000 is offline   Reply With Quote
Old 11-14-2008, 11:57 AM   #15
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
Does that directory have a library1.db file? Or is there a library1.db file elsewhere on your computer?
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Calibre 6.46 Install fails theducks Calibre 24 04-02-2010 09:27 AM
ubuntu hardy problem with binary install `Illegal instruction` lampadena Calibre 2 02-10-2009 02:57 AM
Ubuntu Hardy Calibre Problem vakya Calibre 27 01-26-2009 04:15 PM
downloading calibre in ubuntu hardy ElizabethN Calibre 1 12-29-2008 12:56 AM
New versions of calibre in Ubuntu Hardy 64 Bit deedward9 Calibre 19 10-17-2008 11:21 PM


All times are GMT -4. The time now is 04:10 AM.


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