10-11-2008, 10:38 AM | #1 | |
Guru
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
4.95 installation failure: Kubuntu 8.04
Quote:
|
|
10-11-2008, 12:34 PM | #2 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
re-download, should now be fixed.
|
Advert | |
|
10-13-2008, 01:44 PM | #3 | |
Connoisseur
Posts: 69
Karma: 272
Join Date: May 2006
Device: Sony Reader
|
Quote:
|
|
10-13-2008, 02:31 PM | #4 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
make sure you have qt and pyqt with webkit support installed.
|
10-13-2008, 02:46 PM | #5 |
Connoisseur
Posts: 69
Karma: 272
Join Date: May 2006
Device: Sony Reader
|
I ran apt-get update python-setuptools python-imaging libqt4-core libqt4-gui \
python-qt4 python-mechanize imagemagick xdg-utils \ python-dbus python-lxml python-beautifulsoup help2man this morning. When I run calibre_postinstall, I get Trying to setup udev rules... Restarting Hardware abstraction layer: hald. /bin/sh: udevadm: command not found Setting up bash completion... failed Traceback (most recent call last): File "build/bdist.linux-i686/egg/calibre/linux.py", line 170, 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 14, in <module> File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/epub.py", line 13, in <module> ImportError: cannot import name QWebPage Traceback (most recent call last): File "/usr/bin/calibre_postinstall", line 8, in <module> load_entry_point('calibre==0.4.95', 'console_scripts', 'calibre_postinstall')() File "build/bdist.linux-i686/egg/calibre/linux.py", line 440, in post_install File "build/bdist.linux-i686/egg/calibre/linux.py", line 314, in setup_completion UnboundLocalError: local variable 'manifest' referenced before assignment Webkit is installed and up to date too, I even reinstalled it. |
Advert | |
|
10-13-2008, 03:03 PM | #6 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That error message indicates that your pyqt installation doesn't have the QtWebKit module. I suggest asking on the ubuntu fora for help
|
10-13-2008, 03:06 PM | #7 |
Connoisseur
Posts: 69
Karma: 272
Join Date: May 2006
Device: Sony Reader
|
It's debian, but thanks anyway, I'll wait for next version to see if it's still broken.
|
10-13-2008, 03:29 PM | #8 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
Do you have the python-qt4 package installed? It looks like it includes qtwebkit. BOb |
|
10-13-2008, 09:30 PM | #9 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2008
Device: Sony PRS 505
|
Failed to install on Windows XP
I get the following message when trying to install the latest version:
Error in action ExecuteAction: Error in action AddDirectoryToPath: unable to open key: Access is denied. Error in action ExecuteAction: Error in action AddDirectoryToPath: unable to open key: Access is denied. while executing "$obj execute" (procedure "::InstallJammer::ExecuteActions" line 64) invoked from within "::InstallJammer::ExecuteActions $id -when $when" (procedure "::InstallJammer::RaiseEventHandler" line 79) invoked from within "::InstallJammer::RaiseEventHandler .wizard" (command bound to event) The earlier version installed in August 2008 worked fine. |
10-14-2008, 08:58 AM | #10 |
Wizard
Posts: 1,552
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
QWebPage fix
Ubuntu 8.10 Seems to have the QWebPage class in the QtWebKit module instead of Qt, as seen in calibre's source.
I have made this change to the source, and now I get no errors, and ePub cover thumbnails display fine in the GUI: Code:
=== modified file 'src/calibre/ebooks/metadata/epub.py' --- src/calibre/ebooks/metadata/epub.py 2008-10-11 00:44:56 +0000 +++ src/calibre/ebooks/metadata/epub.py 2008-10-14 12:53:27 +0000 @@ -10,8 +10,12 @@ from contextlib import closing from ctypes import c_long, byref -from PyQt4.Qt import QWebPage, QUrl, QEventLoop, QSize, QByteArray, QBuffer, \ +from PyQt4.Qt import QUrl, QEventLoop, QSize, QByteArray, QBuffer, \ SIGNAL, QPainter, QImage, QObject, QApplication +try: + from PyQt4.Qt import QWebPage +except ImportError: + from PyQt4.QtWebKit import QWebPage from calibre.utils.PythonMagickWand import ImageMagick, NewMagickWand, MagickGetImageBlob, \ MagickReadImageBlob, MagickTrimImage, MagickSetFormat |
10-14-2008, 12:48 PM | #11 | |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Since Qt is supposed to be a shortcut module that contains the entire PyQt namespace, this is a bug in ubuntu. You should open a ticket. I'll make that change in the code though.
Quote:
|
|
10-14-2008, 06:14 PM | #12 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2008
Device: palmTX
|
openSuSE 11.0 is exhibiting the same behaviour as ubuntu. Applying the patch allows calibre to build and install.
AS well the file src/calibre/ebooks/lrf/html/table_as_image.py also has a reference to QWebPage and should be patched as well. Last edited by sconnolly; 10-14-2008 at 06:16 PM. Reason: Spoke too soon |
10-14-2008, 06:29 PM | #13 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks, fixed.
|
10-15-2008, 05:12 PM | #14 |
Wizard
Posts: 1,552
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
Kovid, what release/distro are you using? I need some reference before filing a bug.
|
10-15-2008, 05:40 PM | #15 |
creator of calibre
Posts: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I use gentoo, my PyQt is compiled from source.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
0.6.45 Binary installation failure | lamparty | Calibre | 14 | 03-19-2010 01:19 AM |
0.6.45 Windows installation failure | bellyqueen | Calibre | 1 | 03-16-2010 10:32 AM |
Calilbre does not view books on Kubuntu | joneall | Calibre | 6 | 10-09-2009 11:57 AM |
Calibre view failure with mobi under Kubuntu | joneall | Calibre | 2 | 07-19-2009 10:31 AM |
failure to launch | whymany | Calibre | 4 | 10-06-2008 07:06 AM |