10-02-2008, 02:25 PM | #1 |
Qsay Master
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 |
10-02-2008, 02:36 PM | #2 |
creator of calibre
Posts: 44,375
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you need python-lxml >= 2.0.5
|
Advert | |
|
10-02-2008, 05:28 PM | #3 |
Groupie
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 |
10-02-2008, 06:20 PM | #4 |
creator of calibre
Posts: 44,375
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you also need python-lxml >= 2.0.5
|
10-03-2008, 04:51 AM | #5 |
Qsay Master
Posts: 5
Karma: 10
Join Date: Mar 2006
Location: Japan
Device: iWish!
|
|
Advert | |
|
10-03-2008, 09:43 AM | #6 |
Groupie
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! |
11-13-2008, 04:57 AM | #7 |
Enthusiast
Posts: 33
Karma: 13208
Join Date: Aug 2008
Device: prs-505
|
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. |
11-13-2008, 12:46 PM | #8 |
creator of calibre
Posts: 44,375
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Are you sure? Post the error message
|
11-13-2008, 04:36 PM | #9 |
Enthusiast
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 |
11-13-2008, 04:50 PM | #10 |
creator of calibre
Posts: 44,375
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
no that error indicates you're missing libunrar.so
|
11-13-2008, 06:06 PM | #11 |
Enthusiast
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? |
11-13-2008, 11:54 PM | #12 |
Addict
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. |
11-13-2008, 11:56 PM | #13 |
creator of calibre
Posts: 44,375
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
just upgrade to 105, libunrar should now be an optional dependency
|
11-14-2008, 07:06 AM | #14 |
Enthusiast
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 |
11-14-2008, 11:57 AM | #15 |
creator of calibre
Posts: 44,375
Karma: 23764838
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?
|
|
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 |