On 08/06/2015 02:03 AM, Tom Harrop wrote:
Hello,

I'm trying to run spyder with python3 on Xubuntu 14.04.

I am on Python 3.4.3 and I have PyQt4 installed:

|
which python3
/usr/bin/python3
python3
Python3.4.3(default,Aug52015,16:15:39)
[GCC 4.8.4]on linux
Type"help","copyright","credits"or"license"formore information.
importPyQt4


So what happens if you do?:

from PyQt4.QtCore import PYQT_VERSION_STR as __version__

|

I have PyQt4 4.10.4 from apt-get

|
apt-cache policy python3-pyqt4
python3-pyqt4:
Installed:4.10.4+dfsg-1ubuntu1
Candidate:4.10.4+dfsg-1ubuntu1
|


My guess is that since you are using XUbuntu and therefore xfce you do not have a system QT install or a minimal one at best. I would crank up the XUbuntu package manager and see what QT(non-Python) libraries are installed.


However trying to launch spyder gives me an error:

|
spyder3
Traceback(most recent call last):
File"/usr/lib/python3.4/site-packages/spyderlib/qt/__init__.py",line
46,in<module>
fromPySideimport__version__ # analysis:ignore
ImportError:Nomodulenamed 'PySide'

Duringhandling of the above exception,another exception occurred:

Traceback(most recent call last):
File"/usr/lib/python3.4/site-packages/spyderlib/requirements.py",line
40,incheck_qt
fromspyderlib importqt
File"/usr/lib/python3.4/site-packages/spyderlib/qt/__init__.py",line
48,in<module>
raiseImportError("Spyder requires PySide or PyQt to be installed")
ImportError:Spyderrequires PySideorPyQtto be installed

Duringhandling of the above exception,another exception occurred:

Traceback(most recent call last):
File"/usr/local/bin/spyder3",line 3,in<module>
     start_app.main()
File"/usr/lib/python3.4/site-packages/spyderlib/start_app.py",line
114,inmain
fromspyderlib importspyder
File"/usr/lib/python3.4/site-packages/spyderlib/spyder.py",line
77,in<module>
     requirements.check_qt()
File"/usr/lib/python3.4/site-packages/spyderlib/requirements.py",line
50,incheck_qt
%(qt_infos['pyqt']+qt_infos['pyside']))
File"/usr/lib/python3.4/site-packages/spyderlib/requirements.py",line
25,inshow_warning
raiseRuntimeError(message)
RuntimeError:Pleasecheck Spyderinstallation requirements:
PyQt44.6+(orPySide1.2.0+)isrequired.
|

I'm starting to wonder if I have a problem with my python3 installation.
I'd appreciate any troubleshooting suggestions!

Pretty sure this is not a Python problem, but a system library issue.

Thanks for reading,

Tom




--
Adrian Klaver
[email protected]

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to