[PySide] spyder not finding pyqt4.6 except with python2.6 (vs. python3.3, 3.1, 2.7) , spyder 2.1.14 and 2.2.0beta4
Algis Kabaila
akabaila at pcug.org.au
Wed Apr 3 00:12:59 CEST 2013
Hi and thanks for kind words re my posting on pyside at qt-project.org.
It seems to me that there is some confusion on qt, pyqt and pyside. PyQt
is a Python library of programs that enable python programs to make use of
qt libraries. PySide has very similar (the same?) objectives as PyQt.
In a commercial environment one could say that PyQt and PySide are
competitors. Each is independent of the other and go about similar
objectives in a different way.
In my limited experience, operating from a kubuntu (ubuntu with KDE
desktop environment) with Python 2.x both PySide and PyQt4 run "out of the
box" with both downloadable from standard repositories. To my pleasant
surprise, PySide also runs seamlessly with Python3.
In the days past, PyQt4 had to be compiled from source to run with
Python3. It seems that that is still the case today. If I am wrong,
please tell me!
I quite unfamiliar with spyder-ide.
If these ramblings of mine are useful - great. If not, I ask just bear
with me.
Al. (Algis)
On Tuesday 02 April 2013 11:34:26 drc at cognizor.com wrote:
> Greetings.
>
> My goal here is getting python3.3 working the spyder python IDE. (Spyder
> 2.1.14 from the git repo is said to work with python3 by Pierre
> Raybaut, its major developer, at http://spyder-ide.blogspot.com/ in
> the Jan. 24 posting.(The 2.2 series beta4 release of March 12 will not,
> he says. And he's right!)
>
> Neither any other spyder nor pyside are installed in this pure debian OS
> (AVlinux 6.0). This seems to be a bug relevant to pyqt4 naming. Can't
> tell if pyside would provide a workarounpyside at qt-project.orgd.
>
> Theoretically qt4 ( "qt4.4+" is specified in the spyder code) should
> work since debian package qt 4.7.3-1+b1 is installed.
>
> python2.6 finds it and starts up spyder with it, thus:
> ---------pyside at qt-project.org
> python2.6 bootstrap.py
> Executing Spyder from source checkout
> Revision 2114:b2b019b3abb3, Branch: default
> 01. Patched sys.path with
> /home/py/tidings/pyacqs/ide/spyder2.1.14/spyderlib.v21
> and
> /home/py/tidings/pyacqs/ide/spyder2.1.14/spyderlib.v21/external-py2
> 02. No PySide detected, using PyQt4 if available
> 03. Imported Spyder 2.1.14dev3 (Qt 4.6.3 via PyQt4 (API v1) 4.7.3)
> 0x. Enforcing parent console (Windows only)
> 04. Executing spyder.main()
>
> -----------
>
> But no, the pyqt4 is not found with python3.3, python3.1, and python2.7
> . The same error as produced by the beta arises, namely this:
>
> ------------
> ide/spyder2.1.14/spyderlib.v21$ python3.3 bootstrap.py
> Executing Spyder from source checkout
> Revision 2114:b2b019b3abb3, Branch: default
> 01. Patched sys.path with /home/.../ide/spyder2.1.14/spyderlib.v21
> and
> /home/.../ide/spyder2.1.14/spyderlib.v21/external-py3
> 02. No PySide detected, using PyQt4 if available
> Traceback (most recent call last):
> File
> "/home/py/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/qt/__init__.py",
> line 46, in <module>
> from PySide import __version__ # analysis:ignore
> ImportError: No module named 'PySide'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File
> "/home/py/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/requirements.py",
> line 39, in check_qt
> from spyderlib import qt
> File
> "/home/py/.../spyder2.1.14/spyderlib.v21/spyderlib/qt/__init__.py",
> line 48, in <module>
> raise ImportError("Spyder requires PySide or PyQt to be installed")
> ImportError: Spyder requires PySide or PyQt to be installed
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "bootstrap.py", line 89, in <module>
> from spyderlib import spyder
> File "/home/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/spyder.py",
> line 50, in <module>
> requirements.check_qt()
> File
> "/home/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/requirements.py",
> line 49, in check_qt
> % (qt_infos['pyqt']+qt_infos['pyside']))
> File
> "/home/.../ide/spyder2.1.14/spyderlib.v21/spyderlib/requirements.py",
> line 24, in show_warning
> raise RuntimeError(message)
> RuntimeError: Please check Spyder installation requirements:
> PyQt4 4.4+ (or PySide 1.0+) is required.
> [64234 refs]
> py at t9012av6:~/.../ide/spyder2.1.14/spyderlib.v21$
>
> -----------
>
> Thanks for your help!
>
> @ Algis:
> thanks for your notes posted today on tutorials for pyside, at
> http://lists.qt-project.org/pipermail/pyside/2013-April/001209.html
> Does pyside work with python3.3 on unix (debian linux, AVlinux6.0)?
> >From the elaborate pyside install instructions at pypi.python.org I
> >can't
> tell. There is definitely need for a clear Tutorial posted
> conspicuously!
>
> @ Pierre:
> Many congratulations on your new child. (Read about in the iep
> forum.) And Thanks for spyder!
>
> SC
> Dr. S. Candelaria de Ram
> drc at cognizor.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130403/53367203/attachment.html>
More information about the PySide
mailing list