|
|
#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:
|
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
re-download, should now be fixed.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Connoisseur
![]() ![]() ![]() Posts: 69
Karma: 272
Join Date: May 2006
Device: Sony Reader
|
Quote:
|
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
make sure you have qt and pyqt with webkit support installed.
|
|
|
|
|
|
#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 | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
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
|
|
|
|
|
|
#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.
|
|
|
|
|
|
#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 |
|
|
|
|
|
|
#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 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,180
Karma: 21109848
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
|
|
|
|
|
|
#11 | |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
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:
|
|
|
|
|
|
|
#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 07:16 PM. Reason: Spoke too soon |
|
|
|
|
|
#13 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks, fixed.
|
|
|
|
|
|
#14 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,180
Karma: 21109848
Join Date: Sep 2008
Device: Kobo Clara 2E
|
Quote:
|
|
|
|
|
|
|
#15 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,615
Karma: 28549044
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 02:19 AM |
| 0.6.45 Windows installation failure | bellyqueen | Calibre | 1 | 03-16-2010 11:32 AM |
| Calilbre does not view books on Kubuntu | joneall | Calibre | 6 | 10-09-2009 12:57 PM |
| Calibre view failure with mobi under Kubuntu | joneall | Calibre | 2 | 07-19-2009 11:31 AM |
| failure to launch | whymany | Calibre | 4 | 10-06-2008 08:06 AM |