OS-X Installation

263 views
Skip to first unread message

Peter West

unread,
Nov 23, 2009, 9:52:55 AM11/23/09
to spyder
Hi

Spyder appears to be exactly what I've been looking for, a Matlab
front-end replacement! If it is as good as it look, Mathworks should
be very worried as SciPy and MatPlotLib already offer a credible
alternative to Matlab, they are just not very easy to use.

I've been trying to instal Spyder under OS-X, I apparently have
correctly install QT4 as I can run the QT demos and have also
apparently installed QScintilla. What I can't do is make Spyder using
easy_install. It fails with
ImportError: No module named PyQt4.QtCore

Has anyone successfully installed this on a Mac and can they tell me
how to do it?

Cheers

Jeff Wong

unread,
Nov 28, 2009, 4:28:35 PM11/28/09
to spyd...@googlegroups.com
I had trouble installing it too.
I found that the issue was that I had two python installations on my computer. I think this is typical of MacOS X since Python 2.5 is for the OS scripts while Python 2.6 is for your use.

Make sure you are building and installing Spyder and supporting libs to the same python installation.

Peter West

unread,
Dec 3, 2009, 7:05:20 AM12/3/09
to spyder
Thanks Jeff

I think you may have the answer to my problem. As far i I could see
the Spyder source was compatible with Python 2.5, do I need 2.6
installed for Spyder?

Thanks

Pierre Raybaut

unread,
Dec 4, 2009, 10:34:55 AM12/4/09
to spyder
Hi Peter,

I confirm that Spyder is compatible with both Python 2.5 and 2.6.

But I'm afraid I can't help you regarding PyQt4 installation issues
which are quite specific to MacOS, an OS which I'm not very familiar
with (all I know is that you're not the first to experience this kind
of issue with MacOS).

Good luck and thanks for sharing your problems as well as your
solutions.

Pierre

denis

unread,
Dec 5, 2009, 1:10:02 PM12/5/09
to spyder
Hi Pierre,
PyQt-mac-gpl-4.6.2.tar.gz works fine
with ActivePython-2.6.4.8-macosx.dmg, Macosx 10.4.11 ppc, qt-mac-
opensource-src-4.4.3
but easy_install spyder-1.0.1 =>

File ".../spyder-1.0.1/spyderlib/__init__.py", line 47, in
check_pyqt_qscintilla
from PyQt4.Qsci import QSCINTILLA_VERSION_STR
ImportError: No module named Qsci

I see a .../site-packages/PyQt4/uic/widget-plugins/qscintilla.py with
return "PyQt4.Qsci" ...
but don't understand, will try the PyQt newsgroup ...

(Once this gets working, let's put together a list of versions that's
known to work together ?)

Thanks, cheers
-- denis

Pierre Raybaut

unread,
Dec 5, 2009, 1:30:22 PM12/5/09
to spyder
Hi Denis,

Spyder requires PyQt4 *and* QScintilla.
QScintilla is a PyQt4's extension (included in PyQt4's Windows
installer for example): that is the 'PyQt4.Qsci' module which is
apparently missing on your machine.

And, yes, I'll update the Installation wiki page with this list of
packages to install on MacOS, good idea.

HTH
Pierre

denis

unread,
Dec 8, 2009, 5:42:30 AM12/8/09
to spyder
On Dec 5, 7:30 pm, Pierre Raybaut <pierre.rayb...@gmail.com> wrote:
> Hi Denis,
>
> Spyder requires PyQt4 *and* QScintilla.
> QScintilla is a PyQt4's extension (included in PyQt4's Windows
> installer for example): that is the 'PyQt4.Qsci' module which is
> apparently missing on your machine.

RIght, thanks -- it's clear in your README (rtfm).
Could you add "QScintilla2 > 2.1" to install_requires= in setup.py so
that installers would check that first ?

Forwhatitsworth, here's a complete list of download files for
spyder ... under Python 2.6:

ActivePython-2.6.4.8-macosx.dmg
http://docs.activestate.com/activepython/2.6

sip-4.9.3.tar.gz
PyQt-mac-gpl-4.6.2.tar.gz
http://www.riverbankcomputing.co.uk/software/pyqt/download
python configure.py
Makefile instead of .xcodeproj: qmake -macx -spec macx-g++
teelog make (2 hours), sudo make install
QScintilla-gpl-2.4.tar.gz
http://www.riverbankcomputing.co.uk/software/qscintilla/download
cd Qt4, cd Python: qmake, make, sudo make install

numpy-1.4.0rc1-py2.6-python.org.dmg
http://sourceforge.net/projects/numpy/files/NumPy
scipy-0.7.1-py2.6-python.org.dmg
http://sourceforge.net/projects/scipy/files/scipy
matplotlib-0.99.1.1-py2.6-macosx10.5.dmg
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1
wxPython2.8-osx-ansi-2.8.10.1-universal-py2.6.dmg
http://downloads.sourceforge.net/wxpython
(I don't want wxpython, but pylab does ?)
ipython-0.10-py2.6.egg
http://ipython.scipy.org/moin/Download
spyder-1.0.1.tar.gz
http://spyderlib.googlecode.com

(yolk -D / -F is nice for packages in PyPI, but is broken w
setuptools-0.6c11.)

(Why not easy_install the whole lot ? FUD: no dryrun, no uninstall.
Agree / disagree ?)

cheers
-- denis
Reply all
Reply to author
Forward
0 new messages