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 ?
> 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 ?
Hi,
This sounds like the PyQt package you have installed was not built with QtWebKit Python bindings. You should check with the package maintainer.
> -- > You received this message because you are subscribed to the Google Groups "spyder" group. > To post to this group, send email to spyderlib@googlegroups.com. > To unsubscribe from this group, send email to spyderlib+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
> On Dec 4, 8:41 pm, Pierre Raybaut <pierre.rayb...@gmail.com> wrote: > 2011/12/3 Ghislain Vaillant <ghisv...@gmail.com>:
> > 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 ?
> 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 spyderlib@googlegroups.com. > > To unsubscribe from this group, send email to spyderlib+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/spyderlib?hl=en.
You are right. Apparently, support for QtWebkit was dropped and bindings for Python went missing since then.
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.
On Dec 13, 4:51 pm, anatoly techtonik <techto...@gmail.com> wrote:
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.s o -- 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/ShibokenConfig Version.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 ?
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.
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.
> 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.