View Single Post
Old 01-09-2010, 04:10 PM   #1
iain_benson
Connoisseur
iain_benson began at the beginning.
 
iain_benson's Avatar
 
Posts: 58
Karma: 37
Join Date: Oct 2008
Device: PRS-600
CALIBRE_DEVELOP_FROM and ebook-viewer

I have the CALIBRE_DEVELOP_FROM variable set so that I can mod the source code, however, I've just noticed that it stops me using the inbuilt e-book reader.

If I attempt to open a book within calibre, nothing happens. If I go to a command prompt and run ebook-viewer I get the following ...

Python function terminated unexpectedly: No module named QtWebKit.QWebView
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 115, in run_entry_point
pmod = __import__(mod, fromlist=[1], level=0)
File "/Users/iain/Documents/CalibreDev/calibre/src/calibre/gui2/viewer/main.py", line 14, in <module>
from calibre.gui2.viewer.main_ui import Ui_EbookViewer
File "/Users/iain/Documents/CalibreDev/calibre/src/calibre/gui2/viewer/main_ui.py", line 179, in <module>
from QtWebKit.QWebView import QWebView
ImportError: No module named QtWebKit.QWebView


unsetting CALIBRE_DEVELOP_FROM first allows it to work. Any thoughts?

Cheers
Iain


P.S. This is on OSX!
iain_benson is offline   Reply With Quote