Enthought python, Spyder and Macports (and OS X Lion)

1,211 views
Skip to first unread message

dcn

unread,
Nov 22, 2011, 8:17:54 PM11/22/11
to spyder
I have installed the 32-bit Enthought python v 7.1-2 distribution
(python 2.7.2 and most of the useful stuff like matplotlib, numpy etc)

The Spyder website recommends installing Spyder on a Mac via Macports
(which I also have installed).

When I look at the details on Macports for python 2.7 (py27-spyder), I
see that the version of Spyder there is still 2.1.1, and that there
are lots of dependencies on things like matplotlib.

I don't want to install a lot of duplicate versions, or have them used
by Spyder.

So, to my questions: (a) has any one got the current Spyder working
with the current Enthought distro on a Mac? (b) If so, what's the
best way to install?

I haven't tried doing this for two years, with Spyder 1.x on OS X
Leopard and that took a great deal of work to get going. Is it any
easier now?

DN

dcn

unread,
Nov 22, 2011, 8:26:28 PM11/22/11
to spyder
Just to clarify, I have installed Macports but not Spyder.

DN

anatoly techtonik

unread,
Nov 23, 2011, 3:21:40 AM11/23/11
to spyd...@googlegroups.com
Seems like EPD 7.1 won't work with Spyder, because it includes outdated PySide version 1.0.5 which causes problems with Spyder. http://code.google.com/p/spyderlib/issues/detail?id=841

dcn

unread,
Nov 23, 2011, 3:58:54 AM11/23/11
to spyd...@googlegroups.com
Thanks.  Looks like I'll have to wait a while.

DN

Shal

unread,
Nov 24, 2011, 1:04:31 PM11/24/11
to spyder
Hello - has anyone here successfully installed spyder on MacOS 10.6.x?
It seems next to impossible without in-depth developer knowledge of
compiler internals. Isn't there a straight forward installer that can
help a relatively newbie install the application? Appreciate some
guidance as I have been spinning my wheels trying this and that for
the past week.

dcn

unread,
Nov 25, 2011, 6:29:19 PM11/25/11
to spyder
I posted a question like this on the Enthought list. It appears that
the Enthought distribution will work with Spyder if the right version
of Pyside (PySide-1.0.8-1) is installed. This is not the default
version that comes with the (free) academic download (1.0.5) so Spyder
doesn't work by default. Now Enthought comes with a mechanism to
access the Enthought EPD repositories, but - catch22 - you can't
access the EPD repo unless you buy a $199 subscription.

So the question now becomes, how do I upgrade the EPD Pyside without
using the EPD repository?

The idea of trying to use Macports to do this worries me a lot (likely
multiple versions installed and Path problems). The EPD appears to
include easy_install, but it refers to its own list of repositories.
Stymied again (at least with my level of knowledge)

DN

Carlos Córdoba

unread,
Nov 25, 2011, 9:36:44 PM11/25/11
to spyd...@googlegroups.com
Well DN, I googled a little bit and it seems there is no possibility to
update PySide inside EPD because they have their own directory structure
which is very different from a regular one. So I think you'll have to
wait until the next academic release.

Cheers,
Carlos

El 25/11/11 18:29, dcn escribió:

David Nicholls

unread,
Nov 26, 2011, 1:06:30 AM11/26/11
to spyd...@googlegroups.com
Argghh. Thanks, Carlos.

That's what I feared.

I am however trying an alias in the Enthought directory to point to the Macports install (suggested on the Macports list) and I'll advise if it works. (faint hope)

DN

> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> 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.
>

David Nicholls

unread,
Nov 26, 2011, 3:19:06 AM11/26/11
to spyd...@googlegroups.com
OK, I installed Spyder via Macports, and I'm impressed. It is a very complete package. I didn't need to use Enthought, although that installs very fast.

I do have warning messages, however:

jinja2/__init__.py:31: UserWarning: Module roman was already imported from roman.py, but /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages is being added to sys.path
__version__ = __import__('pkg_resources') \

on starting Spyder.

What does this mean and can it be avoided?

DN

DJP

unread,
Mar 21, 2012, 10:39:15 AM3/21/12
to spyd...@googlegroups.com
The latest version of the Enthought Python Distribution includes the latest version of Pyside and so should work with Spyder.  But I do not know how get Spyder working with the EPD distribution (on the Mac under Lion).  Has someone figured this out?

DP

mangecoeur

unread,
Mar 22, 2012, 9:39:03 AM3/22/12
to spyd...@googlegroups.com
You can try the pkg installer i created, see the issue for the link to the file (use the first link):
http://code.google.com/p/spyderlib/issues/detail?id=697#c8

When installed spyder will be in your site-packages and can be run from the command line by just typing "spyder" - note that it won't create an application shortcut for you.
Jon

David Pine

unread,
Mar 22, 2012, 10:53:42 PM3/22/12
to spyd...@googlegroups.com
Jon

I don't understand why I should have to install Pyside for Spyder to work as Pyside -- the latest version -- is included in EPD.

David

--
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/-/7DnVmATC0fQJ.

mangecoeur

unread,
Mar 23, 2012, 5:19:30 AM3/23/12
to spyd...@googlegroups.com
David

You don't - sorry that isn't very clear. The instructions for installing pyside are there assuming you don't already have it installed (e.g from EPD). That isn't very clear i guess...

Jon
To unsubscribe from this group, send email to spyderlib+unsubscribe@​googlegroups.com.

David Pine

unread,
Mar 24, 2012, 12:29:53 PM3/24/12
to spyd...@googlegroups.com
Jon,

Thanks for your Spyder pkg installer.  It works fine.

The spyder script needs to be modified to work with EPD.  EPD installs Python to:
/Library/Frameworks/Python.framework/Versions/Current/Python

not to the path contained in the spyder script included with the Spyder installation:
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Alternatively, one can just launch the EPD Python from the console and then run Spyder from the Python prompt >>> by typing
from spyderlib import spyder
spyder.main()

David


To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/tgGZfq8GMP4J.

To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.

Peter Tittmann

unread,
Mar 24, 2012, 2:00:41 PM3/24/12
to spyd...@googlegroups.com
Hi Folks,

I've successfully installed spyder on both Lion and Snow Leopard. Just finished a post on it here.  Maybe it can be of help...

Thanks to those of you who develop this package. Its great.

Peter

dcn

unread,
Jul 31, 2012, 7:54:46 AM7/31/12
to spyd...@googlegroups.com
Spyder on Mountain Lion:

I just upgraded to OS X 10.8 Mountain Lion, and installed the latest academic version of Enthought python (7.3-1, 32 bit)  To see if I could install Spyder, I downloaded the spyder-2.1.11 zip file and in the Mac Terminal opened the Enthought python and ran the spyder setup.py.  It installed very quickly and appears to be running very well. A few minor quirks, but that may just be my poor knowledge of python.

I had earlier tried the Macports approach to installing the complete Spyder scientific package, but at the moment, pyobjc does not compile on Mountain Lion under macports.  In any case, macports compiles everything it needs and is very slow.

I used the Enthought distro as it includes all the scientific stuff in a simple .dmg installer (and I have academic access to it), but installing Spyder under the native Mac python and then manually installing the various packages (numpy, scipy, etc) would also probably work, but would be slower.  Though the broken "c" key might be a problem on Mountain Lion and Lion (or with Xcode 4.4?)(see bug reports).

DN

Eric Borisch

unread,
Aug 7, 2012, 5:46:44 PM8/7/12
to spyd...@googlegroups.com
Just for the record, spyder should be working (and the 'c' oops is fixed, too) on MacPorts on ML (and Lion, SL, ...) now. There are also +small, +tiny, and +pil variants that change the install footprint significantly (based on if you want all the optional dependencies or just the bare minimum. see 'port variants py27-spyder' for more info.)

 - Eric
Reply all
Reply to author
Forward
0 new messages