Enthought Python, Mac OS X 10.6, and Spyder DMG

541 views
Skip to first unread message

BR

unread,
Jan 14, 2013, 2:53:04 PM1/14/13
to spyder
I recently installed EPD 7.3 on my macbook running OS X 10.6, and then
installed Spyder via the DMG
(spyder-2.2.0dev_py27_Snow_Leopard_rev2296.dmg). Unfortunately, it
appears that when you install Spyder this way, it just uses the Python
version that comes installed with OS X rather than EPD. I say this
because it reports

Python 2.7.3 (default, Jul 12 2012, 13:52:05)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin

in the Spyder console window at startup, but when I invoke python from
the terminal I get

Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012, 11:14:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

Now, I think I have solved the problem, but I would like to get
confirmation. In Spyder, I went to Preferences>Console>Advanced
Settings and then reassigned the "Path to Python Interpreter
Executable Binary" to what I think is the EPD executable binary. I
found it in /Library/Frameworks/EPD64.framework/Versions/7.3/bin/
python. Now when I startup Spyder I get

Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

This matches what I get at the terminal, besides the |CUSTOM|, so I
think it's correct. Is there anything else I need to do?

Carlos Córdoba

unread,
Jan 14, 2013, 7:42:25 PM1/14/13
to spyd...@googlegroups.com
Hi,

You found the right solution but there is still a bug that prevents from
loading the EDP libraries from the Spyder App.

I know how to fix it but it's a bit tricky and I haven't had time to sit
down and just do it ;-) I hope to find some spare time next weekend.

Cheers,
Carlos

El 14/01/13 14:53, BR escribió:

BR

unread,
Jan 14, 2013, 9:41:21 PM1/14/13
to spyd...@googlegroups.com
Thanks for your reply.  I will keep an eye out for an update!

BR

unread,
Feb 12, 2013, 5:24:24 PM2/12/13
to spyd...@googlegroups.com
Carlos,

Any luck squashing that bug?

Carlos Córdoba

unread,
Feb 12, 2013, 5:31:28 PM2/12/13
to spyd...@googlegroups.com
Hi,

I solved it already, sorry for not telling you. It's in our new DMG for
Spyder 2.2beta2. Please download and test it to see it works for you :-)

Cheers,
Carlos

El 12/02/13 17:24, BR escribió:
> Carlos,
>
> Any luck squashing that bug?
> --
> 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 spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spyderlib?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

BR

unread,
Feb 13, 2013, 11:56:40 PM2/13/13
to spyd...@googlegroups.com
Carlos,

Thanks for the update!  I installed the 2.2 beta2 on my home computer, gave it the path to the basic (free for anyone) version of the EPD, restarted Spyder, and got a few errors on startup. Here is what shows up in the console:

Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:28:34)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.pyo", line 551, in __bootstrap_inner
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/monitor.py", line 568, in run
    already_pickled=True)
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/bsdsocket.py", line 29, in write_packet
    sock.send(struct.pack("l", len(sent_data)) + sent_data)
error: [Errno 32] Broken pipe

Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/scientific_startup.py", line 16, in <module>
    from pylab import *  #analysis:ignore
  File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pylab.py", line 265, in <module>
    from matplotlib.pyplot import *
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pyplot.py", line 97, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backends/__init__.py", line 25, in pylab_setup
    globals(),locals(),[backend_name])
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backends/backend_qt4agg.py", line 13, in <module>
    from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backends/backend_qt4.py", line 24, in <module>
    from qt4_compat import QtCore, QtGui, _getSaveFileName, __version__
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/backends/qt4_compat.py", line 36, in <module>
    import sip
ImportError: No module named sip

Any idea what to do to fix this?  I will see if I get the same thing at work where I have the full version of the EPD.

Thanks in advance for your help!

BR

unread,
Feb 14, 2013, 11:32:20 AM2/14/13
to spyd...@googlegroups.com
Ok.  Here is the console output when I use the full version of EPD.  It looks the same as the free version of EPD, except the first few lines are missing.

Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/scientific_startup.py", line 16, in <module>
    from pylab import *  #analysis:ignore
  File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/pylab.py", line 1, in <module>

BR

unread,
Mar 1, 2013, 9:15:37 AM3/1/13
to spyd...@googlegroups.com
Hi Firas,

We have transitioned our discussion to the follow site:

http://code.google.com/p/spyderlib/issues/detail?id=1277

I still cannot run EPD with Spyder, but it seems like I am getting closer.

Carlos Córdoba

unread,
Mar 1, 2013, 11:47:02 AM3/1/13
to spyd...@googlegroups.com
To solve the first error, you need to go to:

Tools > Preferences > Console > Advanced Settings > PYTHONSTARTUP replacement

and select the option

[ ] Default PYTHONSTARTUP script


About the second error: have you updated IPython on EPD to version 0.13.1? By default EPD 7.3 comes with IPython 0.12.

Cheers,
Carlos


El 01/03/13 00:33, Firas Moosvi escribió:
Hey Carlos, BR,

I am also getting these errors in the Python console. 

When I try to switch to the iPython console, I get the following errors: 

Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/site.py", line 120, in <module>
    import sitecustomize
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/sitecustomize.py", line 159, in <module>
    os.environ["SPYDER_AR_STATE"].lower() == "true")
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/monitor.py", line 136, in __init__
    self.i_request.connect( (host, introspection_port) )
  File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 61] Connection refused

Please help!

Firas
--

Firas Moosvi

unread,
Mar 1, 2013, 4:27:42 PM3/1/13
to spyd...@googlegroups.com
To anyone else reading this: note that to update iPython to 0.13.1, you need to issue the following commands :

sudo enpkg enstaller
sudo enpkg ipython

sudo is unfortunately necessary as it will give you a very confusing file not found error. 

Carlos, thanks for getting me up to date but I'm still having issues - will discuss here:

Reply all
Reply to author
Forward
Message has been deleted
0 new messages