Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2008, 10:38 AM   #1
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 779
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
4.95 installation failure: Kubuntu 8.04

Quote:
Setting up bash completion... failed
Traceback (most recent call last):
File "<string>", line 170, in setup_completion
File "/home/kovid/build/pyinstaller/iu.py", line 327, in importHook
File "/home/kovid/build/pyinstaller/iu.py", line 410, in doimport
File "library.pyz/calibre.gui2.lrf_renderer.main", line 1, in <module>
File "/home/kovid/build/pyinstaller/iu.py", line 327, in importHook
File "/home/kovid/build/pyinstaller/iu.py", line 410, in doimport
File "library.pyz/calibre.gui2.library", line 18, in <module>
File "/home/kovid/build/pyinstaller/iu.py", line 327, in importHook
File "/home/kovid/build/pyinstaller/iu.py", line 410, in doimport
File "library.pyz/calibre.library.database", line 11, in <module>
File "/home/kovid/build/pyinstaller/iu.py", line 327, in importHook
File "/home/kovid/build/pyinstaller/iu.py", line 410, in doimport
File "library.pyz/calibre.ebooks.metadata.meta", line 14, in <module>
File "/home/kovid/build/pyinstaller/iu.py", line 327, in importHook
File "/home/kovid/build/pyinstaller/iu.py", line 410, in doimport
File "library.pyz/calibre.ebooks.metadata.epub", line 13, in <module>
ImportError: cannot import name QWebPage
Traceback (most recent call last):
File "<string>", line 557, in <module>
File "<string>", line 440, in post_install
File "<string>", line 314, in setup_completion
UnboundLocalError: local variable 'manifest' referenced before assignment
You can uninstall calibre by running sudo calibre-uninstall
Calibre (binary installer) fails to complete installation using Kubuntu 8.04
JeffElkins is offline   Reply With Quote
Old 10-11-2008, 12:34 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,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
re-download, should now be fixed.
kovidgoyal is online now   Reply With Quote
Advert
Old 10-13-2008, 01:44 PM   #3
eumesmo
Connoisseur
eumesmo has a complete set of Star Wars action figures.eumesmo has a complete set of Star Wars action figures.eumesmo has a complete set of Star Wars action figures.
 
Posts: 69
Karma: 272
Join Date: May 2006
Device: Sony Reader
Quote:
Job: Convert book: golden
tuple: ('ImportError', u'cannot import name QWebPage')
Traceback:
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/calibre/parallel.py", line 925, in worker
File "build/bdist.linux-i686/egg/calibre/parallel.py", line 879, in work
File "build/bdist.linux-i686/egg/calibre/parallel.py", line 866, in get_func
File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/any/convert_from.py", line 14, in
File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/rtf/convert_from.py", line 8, in
File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/meta.py", line 14, in
File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/epub.py", line 13, in
ImportError: cannot import name QWebPage

Log:
('ImportError', u'cannot import name QWebPage')
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/calibre/parallel.py", line 925, in worker
File "build/bdist.linux-i686/egg/calibre/parallel.py", line 879, in work
File "build/bdist.linux-i686/egg/calibre/parallel.py", line 866, in get_func
File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/any/convert_from.py", line 14, in
File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/rtf/convert_from.py", line 8, in
File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/meta.py", line 14, in
File "build/bdist.linux-i686/egg/calibre/ebooks/metadata/epub.py", line 13, in
ImportError: cannot import name QWebPage
I'm having a problem of a similar nature on debian sid, I have updated all dependencies I can think of. Trying to convert a .txt with a few mark-ups.
eumesmo is offline   Reply With Quote
Old 10-13-2008, 02:31 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,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
make sure you have qt and pyqt with webkit support installed.
kovidgoyal is online now   Reply With Quote
Old 10-13-2008, 02:46 PM   #5
eumesmo
Connoisseur
eumesmo has a complete set of Star Wars action figures.eumesmo has a complete set of Star Wars action figures.eumesmo has a complete set of Star Wars action figures.
 
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.
eumesmo is offline   Reply With Quote
Advert
Old 10-13-2008, 03:03 PM   #6
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,775
Karma: 22666666
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
kovidgoyal is online now   Reply With Quote
Old 10-13-2008, 03:06 PM   #7
eumesmo
Connoisseur
eumesmo has a complete set of Star Wars action figures.eumesmo has a complete set of Star Wars action figures.eumesmo has a complete set of Star Wars action figures.
 
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.
eumesmo is offline   Reply With Quote
Old 10-13-2008, 03:29 PM   #8
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by eumesmo View Post
It's debian, but thanks anyway, I'll wait for next version to see if it's still broken.
If a required package to run calibre is not installed on your workstation... the next version of calibre isn't going to help.

Do you have the python-qt4 package installed? It looks like it includes qtwebkit.

BOb
pilotbob is offline   Reply With Quote
Old 10-13-2008, 09:30 PM   #9
zhur
Junior Member
zhur began at the beginning.
 
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.
zhur is offline   Reply With Quote
Old 10-14-2008, 08:58 AM   #10
salty-horse
Wizard
salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.
 
salty-horse's Avatar
 
Posts: 1,444
Karma: 16520374
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
salty-horse is offline   Reply With Quote
Old 10-14-2008, 12:48 PM   #11
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,775
Karma: 22666666
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:
Originally Posted by salty-horse View Post
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
kovidgoyal is online now   Reply With Quote
Old 10-14-2008, 06:14 PM   #12
sconnolly
Junior Member
sconnolly began at the beginning.
 
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
sconnolly is offline   Reply With Quote
Old 10-14-2008, 06:29 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,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks, fixed.
kovidgoyal is online now   Reply With Quote
Old 10-15-2008, 05:12 PM   #14
salty-horse
Wizard
salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.salty-horse ought to be getting tired of karma fortunes by now.
 
salty-horse's Avatar
 
Posts: 1,444
Karma: 16520374
Join Date: Sep 2008
Device: Kobo Clara 2E
Quote:
Originally Posted by kovidgoyal View Post
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.
Kovid, what release/distro are you using? I need some reference before filing a bug.
salty-horse is offline   Reply With Quote
Old 10-15-2008, 05:40 PM   #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,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I use gentoo, my PyQt is compiled from source.
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 11:29 AM.


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