New Mac OS X installer

197 views
Skip to first unread message

Carlos Córdoba

unread,
Jul 23, 2012, 10:36:55 AM7/23/12
to spyd...@googlegroups.com
Hi all,

I want to let you know that this weekend I uploaded a new (and still
experimental) Mac installer in our Downloads section. It's a dmg that
let's you add an Spyder app to your Applications folder, as any regular
Mac program. It comes with Qt, PyQt4, numpy, scipy, matplotlib and
IPython, all in their latest versions (If you want to see something
else, let me know).

Please test it and let us know if it's working for you, specially in
Lion/10.7, because I couldn't test it on that version. Error reports can
go here or in Issue 697.

Cheers,
Carlos

Guillaume

unread,
Jul 23, 2012, 4:04:56 PM7/23/12
to spyd...@googlegroups.com


Hi!

Congratulations for the nice work! This looks already very good. Here are a few feedbacks and glitches I could identify. System: Mac Os 10.7 Lion.

Interestingly, I needed to start several times the program until it finally displayed something. During the first three attempts, it just stalled and was reported such by the activity monitor.

Then it just started normally showing the familiar environment, at this level there is nothing in the internal console.

If I start a regular python interpreter though, things start to look more problematic:
Everything seems to start fine... until I do a import matplotlib.pylab which generates a series of error message:
>>> import matplotlib.pylab as pp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pylab.py", line 264, in <module>
    from matplotlib.pyplot import *
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pyplot.py", line 95, in <module>
    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 12, 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 23, 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 56, in <module>
    from PyQt4 import QtCore, QtGui
  File "PyQt4/QtCore.pyo", line 18, in <module>
  File "PyQt4/QtCore.pyo", line 11, in __load
ImportError: dlopen(/Applications/Spyder.app/Contents/Resources/lib/python2.7/lib-dynload/PyQt4/QtCore.so, 2): Library not loaded: @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore
  Referenced from: /Applications/Spyder.app/Contents/Resources/lib/python2.7/lib-dynload/PyQt4/QtCore.so
  Reason: image not found
>>>


Not too surprisingly given the series of errors pylab could cause, starting an ipython console does not work either.
First the spyder internal console returns:
>>> Exception in thread Thread-2:
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/introspection.py", line 65, in run
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/introspection.py", line 49, in send_socket
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/pythonshell.py", line 241, in set_introspection_socket
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/bsdsocket.py", line 71, in communicate
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/bsdsocket.py", line 40, in read_packet
error: unpack requires a string argument of length 8
While the ipython kernel basically immediately dies after spitting out a few lines:
Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 109, in <module>
    ipk_temp.config = kernel_config()
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/start_ipython_kernel.py", line 16, in kernel_config
    from spyderlib.config import CONF
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/config.py", line 21, in <module>
    from spyderlib.qt.QtGui import QLabel, QIcon, QPixmap, QFont, QFontDatabase
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/qt/__init__.py", line 48, in <module>
    raise ImportError("Spyder requires PySide or PyQt to be installed")
ImportError: Spyder requires PySide or PyQt to be installed
and the ipython console never appears.

Hope this helps...
Guillaume


Carlos Córdoba

unread,
Sep 10, 2012, 11:08:49 AM9/10/12
to spyd...@googlegroups.com
Hi Emmanuel,

Thanks for letting us know the installer is working well for you. It's really great to know!

To use wx, I'll have to add wxWidgets and its python bindings to the installer. There is no easy way you can install them by yourself.

Please open an issue in our Issues tracker here:

http://code.google.com/p/spyderlib/issues/list

so we don't forget to do it in our next release.

Just out of curiosity: what do you need wx for?

Cheers,
Carlos

El 10/09/12 07:26, Emmanuel escribió:
Hello,

I write for 2 things : 

1- To let you know that it perfectly wors on a Snow leopard system. You've really done a great job !

2- To ask you a question.
I want to run pylab in the wx mode. So I have to install wxPython (this is what it asks for when I type %gui wx).
Sorry for being so naive but how do I install new packages in your install (I am of course familiar about installing new packages in python)


Thank you very much

Emmanuel
--
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/-/jENzwNsXVogJ.
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.

Emmanuel Bacry

unread,
Sep 10, 2012, 11:27:05 AM9/10/12
to spyd...@googlegroups.com

Hi Emmanuel,

Thanks for letting us know the installer is working well for you. It's really great to know!

To use wx, I'll have to add wxWidgets and its python bindings to the installer. There is no easy way you can install them by yourself.

Please open an issue in our Issues tracker here:

http://code.google.com/p/spyderlib/issues/list

so we don't forget to do it in our next release.

Just out of curiosity: what do you need wx for?

It's a long story !

I'm a math reasearcher and I'm doing a lot of computations. 
There are a few things that I really don't like in matplotlib (though I admit it is an amazing library) : 

1- It lacks a lot of interactivity
2- It does not support to display very long signals (which I deal with every day).

So I wrote a C++ wxWidget based graphic library that I interfaced with python and that I am using instead of matplotlib....

that's the whole story !

Emmanuel

Carlos Córdoba

unread,
Sep 10, 2012, 11:46:59 AM9/10/12
to spyd...@googlegroups.com
Ok, thanks for taking the time to explain us your use case. I thought
you were using an Enthought library (like Chaco). I saw you filled an
issue for this, so thanks for that too.

I'll see what I can do about it.

Cheers,
Carlos

El 10/09/12 10:27, Emmanuel Bacry escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
Reply all
Reply to author
Forward
0 new messages