View Single Post
Old 12-26-2014, 04:31 PM   #3
Raimond
Member
Raimond began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Nov 2010
Device: Sony PRS-600, Kindle Paperwhite
Hi Peter,

thanks for your reply. Python version is 2.7.6 out of the box.

The problem was the build QT version. I set the path variable to include the directory, but sudo doesn't preserve it.

Fixed by calling it this way:
Code:
sudo env "PATH=$PATH" python setup.py install
Building calibre works now, only two warnings left that I'll check tomorrow:

Code:
____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________
        Traceback (most recent call last):
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/linux.py", line 746, in setup_completion
            write_completion(bash_comp_dest, zsh)
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/linux.py", line 504, in write_completion
            from calibre.gui2.viewer.main import option_parser as viewer_op
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/gui2/viewer/main.py", line 12, in <module>
            from calibre.gui2.viewer.ui import Main as MainWindow
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/gui2/viewer/ui.py", line 12, in <module>
            from PyQt5.Qt import (
        ImportError: cannot import name QWebView

Setting up desktop integration...

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________
        Traceback (most recent call last):
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/linux.py", line 816, in setup_desktop_integration
            from calibre.ebooks.oeb.polish.main import SUPPORTED
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/ebooks/oeb/polish/main.py", line 15, in <module>
            from calibre.ebooks.oeb.polish.stats import StatsCollector
          File "/home/odroid/Documents/calibre-2.14.0/src/calibre/ebooks/oeb/polish/stats.py", line 18, in <module>
            from PyQt5.QtWebKitWidgets import QWebPage, QWebView
        ImportError: No module named QtWebKitWidgets

Creating un-installer: /usr/bin/calibre-uninstall
Installing calibre environment module: /usr/lib/python2.7/dist-packages/init_calibre.py
But I think I know the cause of this problem.... I've used
Code:
perl init-repository --no-webkit
maybe that wasn't a good idea....

gn8 & thanks
Rai
Raimond is offline   Reply With Quote