installing on OSX ImportError("Spyder requires PySide or PyQt to be installed")

190 views
Skip to first unread message

Peter Tittmann

unread,
Oct 6, 2011, 4:56:31 PM10/6/11
to spyd...@googlegroups.com
Hi,

I'm using the development version and have installed all of the
dependencies. When I attempt to run spyder:

$ spyder

i get the following:

Traceback (most recent call last):
File "/usr/local/bin/spyder", line 2, in <module>
from spyderlib import spyder
File "/Library/Python/2.6/site-packages/spyderlib/spyder.py", line
30, in <module>
from spyderlib import qt #analysis:ignore
File "/Library/Python/2.6/site-packages/spyderlib/qt/__init__.py",
line 38, in <module>
raise ImportError("Spyder requires PySide or PyQt to be installed")
ImportError: Spyder requires PySide or PyQt to be installed
viking:~ petert$ sudo spyder
Password:
Traceback (most recent call last):
File "/usr/local/bin/spyder", line 2, in <module>
from spyderlib import spyder
File "/Library/Python/2.6/site-packages/spyderlib/spyder.py", line
30, in <module>
from spyderlib import qt #analysis:ignore
File "/Library/Python/2.6/site-packages/spyderlib/qt/__init__.py",
line 38, in <module>
raise ImportError("Spyder requires PySide or PyQt to be installed")
ImportError: Spyder requires PySide or PyQt to be installed

I have tried installing both PySide and PyQt from MacPorts and
downloading/installing the binaries directly to no avail.

Can anyone suggest a solution?

Thanks,

Peter

zachcp

unread,
May 15, 2012, 11:12:11 AM5/15/12
to spyd...@googlegroups.com, ptit...@gmail.com
I am having the same problem. Did you ever figure out how to get Spyder working?


thanks,
zach cp

Carlos Córdoba

unread,
May 15, 2012, 1:49:42 PM5/15/12
to spyd...@googlegroups.com
You can try to install PyQt using homebrew. I did it some time ago and it went pretty well. Spyder on OS X is really a second class citizen. We'll try to improve the situation during the summer or perhaps at the end of the year.

Cheers,
Carlos

El 15/05/12 10:12, zachcp escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/1ZxEnszZzFcJ.
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.

Peter Tittmann

unread,
May 15, 2012, 2:04:34 PM5/15/12
to spyd...@googlegroups.com
I abandoned MacPorts and manually installed SIP and PyQt. There gets to be a bit of confusion with the system python on OSXand whatever macports installs. I used the enthought python distribution for osx as a starting point, then:

1. install QT using the source tar ball here
2. install SIP from Riverbank here
3. install PyQt from RIverbank here

Theres a bit more rambling about this on my blog here.

I fully agree that spyder on OSX needs help. Such a great tool, though. Thanks Carlos, Pierre etc.

Good luck!
Reply all
Reply to author
Forward
0 new messages