Spyderlib installation on RHEL 6, troubles with QtWebkit

1,577 views
Skip to first unread message

Ghislain Vaillant

unread,
Dec 3, 2011, 1:26:47 PM12/3/11
to spyder
Hey guys,

Tried to install spyderlib v2.0.12 on my SL6.1 64 bits system, as the
requirements (PyQt, python-sphinx, pylint, pyflakes) can be fulfilled
with extra packages from EPEL. Building and installing from the
setup.py script in the source directory went fine. However spyderlib
does not start, giving the following error message in the CLI:


Traceback (most recent call last):
File "/usr/bin/spyder", line 2, in <module>
from spyderlib import spyder
File "/usr/lib/python2.6/site-packages/spyderlib/spyder.py", line 60,
in <module>
from spyderlib.plugins.inspector import ObjectInspector
File "/usr/lib/python2.6/site-packages/spyderlib/plugins/
inspector.py", line 29, in <module>
from spyderlib.widgets.browser import WebView
File "/usr/lib/python2.6/site-packages/spyderlib/widgets/browser.py",
line 11, in <module>
from spyderlib.qt.QtWebKit import QWebView, QWebPage
File "/usr/lib/python2.6/site-packages/spyderlib/qt/QtWebKit.py",
line 10, in <module>
from PyQt4.QtWebKit import *
ImportError: No module named QtWebKit


which suggests a missing python binding for QtWebkit although I
installed it and its devel package from EPEL (qtwebkit-2.1.1-1 and
qtwebkit-devel-2.1.1-1).

Any ideas ? Has anybody been successful in getting Spyder to work on
an EL6 config ?

Cheers,
Ghis

Pierre Raybaut

unread,
Dec 4, 2011, 3:41:37 PM12/4/11
to spyd...@googlegroups.com
2011/12/3 Ghislain Vaillant <ghis...@gmail.com>:

Hi,

This sounds like the PyQt package you have installed was not built
with QtWebKit Python bindings.
You should check with the package maintainer.

HTH,
Pierre

> Cheers,
> Ghis
>
> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
>

Message has been deleted

Ghislain Vaillant

unread,
Dec 13, 2011, 8:57:34 AM12/13/11
to spyder
> On Dec 4, 8:41 pm, Pierre Raybaut <pierre.rayb...@gmail.com> wrote:
> 2011/12/3 Ghislain Vaillant <ghisv...@gmail.com>:


You are right. Apparently, support for QtWebkit was dropped and
bindings for
Python went missing since then.

http://pkgs.org/centos-6-rhel-6/centos-rhel-i386/PyQt4-4.6.2-8.el6.i6...

Suggestions for getting Spyderlib to work for EL6 are warmly welcome.
Any successful report ?

Thank you very much for your help.

Ghis

anatoly techtonik

unread,
Dec 13, 2011, 11:51:48 AM12/13/11
to spyd...@googlegroups.com
On Fedora 16 qtwebkit package is still there.

Ghislain Vaillant

unread,
Dec 13, 2011, 2:29:25 PM12/13/11
to spyder
Indeed, and Spyder is also directly available in the Fedora 16 repo.
EL6 is based on Fedora 12 though. QtWebkit can be installed via the
EPEL 3rd party repo, which I did, but apparently the Python bindings
are broken somehow. I also tried the installation of Eric4, available
in EPEL, without success, as it imports QtWebkit python bindings as
well.

anatoly techtonik

unread,
Dec 13, 2011, 8:33:08 PM12/13/11
to spyd...@googlegroups.com
If you can install QtWebkit with development files, you can build PySide from scratch. Perhaps https://github.com/PySide/BuildScripts can help you.

Ghislain Vaillant

unread,
Dec 14, 2011, 5:06:16 AM12/14/11
to spyder
Thanks Anatoly. Apparently RHEL 6 is mentioned in the
dependencies.fedora.sh. I'll try this out, get back here and update my
status.

Ghislain Vaillant

unread,
Feb 17, 2012, 4:44:10 AM2/17/12
to spyd...@googlegroups.com
Just a quick update on my attempt to install the latest Spyder on EL6. I tried to build PySide from scratch following Anatoly's advice.

1) Cloned this: https://github.com/PySide/BuildScripts

2) Followed the readme instructions, that is to install all the required dependencies using the "dependencies_fedora.sh" script, do the git init & update on all submodules and finally run "build_and_install.sh"

3) On the project's CMake, I get the following output and error at the end:

Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/autodecref.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/basewrapper.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/bindingmanager.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/conversions.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/gilstate.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/helper.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/sbkenum.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/sbkmodule.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/python25compat.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/sbkdbg.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/sbkstring.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/shiboken.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/shibokenmacros.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/threadstatesaver.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/typeresolver.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/shibokenbuffer.h
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/include/shiboken/sbkpython.h
-- Installing: /home/localgv10/pkg/pyside-sandbox/lib/libshiboken-python2.6.so.1.0.10
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/lib/libshiboken-python2.6.so.1.0
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/lib/libshiboken-python2.6.so
-- Removed runtime path from "/home/localgv10/pkg/pyside-sandbox/lib/libshiboken-python2.6.so.1.0.10"
-- Up-to-date: /home/localgv10/pkg/pyside-sandbox/share/man/man1/shiboken.1
-- Installing: /home/localgv10/pkg/pyside-sandbox/lib/generatorrunner/shiboken_generator.so
-- Removed runtime path from "/home/localgv10/pkg/pyside-sandbox/lib/generatorrunner/shiboken_generator.so"
-- Installing: /home/localgv10/pkg/pyside-sandbox/bin/shiboken
-- Installing: /home/localgv10/pkg/pyside-sandbox/lib/cmake/Shiboken-1.0.10/ShibokenConfig.cmake
-- Installing: /home/localgv10/pkg/pyside-sandbox/lib/cmake/Shiboken-1.0.10/ShibokenConfig-python2.6.cmake
-- Installing: /home/localgv10/pkg/pyside-sandbox/lib/cmake/Shiboken-1.0.10/ShibokenConfigVersion.cmake
-- Installing: /home/localgv10/pkg/pyside-sandbox/lib/pkgconfig/shiboken.pc
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using default python: -python2.6
-- libshiboken built for Release
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.2
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Detected OS: x11
-- PySide will be generated using the protected hack!
-- Checking for QAbstractPageSetupDialog in QtGui -- found
-- Checking for QAbstractPrintDialog in QtGui -- found
-- Checking for QGtkStyle in QtGui -- found
-- Checking for QPageSetupDialog in QtGui -- found
-- Checking for QPrintDialog in QtGui -- found
-- Checking for QPrintEngine in QtGui -- found
-- Checking for QPrintPreviewDialog in QtGui -- found
-- Checking for QPrintPreviewWidget in QtGui -- found
-- Checking for QPrinter in QtGui -- found
-- Checking for QPrinterInfo in QtGui -- found
-- Checking for QSessionManager in QtGui -- found
-- Checking for QSizeGrip in QtGui -- found
-- Checking for QSystemTrayIcon in QtGui -- found
-- Checking for QMacStyle in QtGui -- not found
-- Checking for QSslCertificate in QtNetwork -- found
-- Checking for QSslCipher in QtNetwork -- found
-- Checking for QSslConfiguration in QtNetwork -- found
-- Checking for QSslError in QtNetwork -- found
-- Checking for QSslKey in QtNetwork -- found
-- Checking for QSslSocket in QtNetwork -- found
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_PHONON_INCLUDE_DIR
   used as include directory in directory /home/localgv10/Downloads/git/BuildScripts/pyside/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Checking for VideoCaptureDevice in phonon -- not found
CMake version greater than 2.8 necessary to run tests
-- QT_SRC_DIR variable not set or graphviz not found, apidoc generation targets disabled.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_PHONON_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/localgv10/Downloads/git/BuildScripts/pyside/PySide/phonon

-- Configuring incomplete, errors occurred!


Any idea how to solve this. Shall I rather post a bug report on Pyside's bugzilla ?


anatoly techtonik

unread,
Feb 20, 2012, 6:18:03 AM2/20/12
to spyd...@googlegroups.com
PySide is moving to become QT Project, so I don't even know what is the best place to post:

Ghislain Vaillant

unread,
Mar 1, 2012, 11:33:57 AM3/1/12
to spyder
Update on my attempt to get Spyder working on EL6.

EPEL has released an RPM in its stable repo containing the missing
bindings for QtWebkit. Now Spyder launches correctly and seems to be
working as expected.

Many thanks for everyone who contributed to this topic.

Daniel

unread,
Mar 2, 2012, 8:36:14 PM3/2/12
to spyd...@googlegroups.com
Hi everyone.

It doesn't work for me. It launches correctly, but then I can't open nor save a file:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/spyderlib/plugins/editor.py", line 1453, in load
    _("Open file"), basedir, EDIT_FILTERS)
  File "/usr/lib/python2.6/site-packages/spyderlib/qt/compat.py", line 178, in getopenfilenames
    options=options)
  File "/usr/lib/python2.6/site-packages/spyderlib/qt/compat.py", line 132, in _qfiledialog_wrapper
    filters, selectedfilter, options)
TypeError: argument 5 of QFileDialog.getOpenFileNamesAndFilter() has an invalid type

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/spyderlib/plugins/editor.py", line 1567, in save_as
    if editorstack.save_as():
  File "/usr/lib/python2.6/site-packages/spyderlib/widgets/editor.py", line 1333, in save_as
    filename = self.select_savename(finfo.filename)
  File "/usr/lib/python2.6/site-packages/spyderlib/widgets/editor.py", line 1322, in select_savename
    original_filename, EDIT_FILTERS)
  File "/usr/lib/python2.6/site-packages/spyderlib/qt/compat.py", line 189, in getsavefilename
    options=options)
  File "/usr/lib/python2.6/site-packages/spyderlib/qt/compat.py", line 132, in _qfiledialog_wrapper
    filters, selectedfilter, options)
TypeError: argument 5 of QFileDialog.getSaveFileNameAndFilter() has an invalid type

I'm running a fully up-to-date Centos 6.2,

Any ideas?

Thanks in advance.

P.S.: By the way, just before I noticed about the existence the webkit bindings on EPEL, I'd found a workaround installing the PyQt4-4.6.2-7 from ScientificLinux, another Red Hat based distro.

Ghislain Vaillant

unread,
May 28, 2012, 7:33:31 AM5/28/12
to spyd...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages