[Pythonmac-SIG] pythonmac packages question
belinda thom
bthom at cs.hmc.edu
Thu Dec 7 11:21:31 CET 2006
Thanks folks....the saga continues...
> No you don't want that. Add /Library/Frameworks/Python.framework/
> Versions/Current/bin to your shell's PATH, which the macpython
> installer should do automaticly.
>
> The major advantages of that are that all python stuff is nicely
> self-contained in the python framework and it is possible to do
> side-by-side installations of multiple versions of python (such as
> Python 2.4 and 2.5).
>
> Ronald
I've gotten easy-install running, which allowed me to download a
brand-spanking new version of ipython (0.7.2). Recall I've also
installed (via http://pythonmac.org/packages/py24-fat/index.html)
matplotlib, Numeric, and wxPython (the latest version: 2.7.1.3; there
was also a 2.6.3.3 version).
I run my new ipython with the -pylab option (using WXAgg backend and
interactive True) and still get the following warning:
---------
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/ipython-0.7.2-py2.4.egg/IPython/Shell.py:709:
DeprecationWarning: The wxPython compatibility package is no longer
automatically generated or activly maintained. Please switch to the
wx package as soon as possible.
import wxPython.wx as wx
----------
followed by the same ability to not be able to use matplotlib
commands, e.g.
from pylab import *
plot([1,2,3])
gives the same Memory / wx error:
-------
In [3]:
exceptions.MemoryError Traceback (most
recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
61 FigureCanvasAgg.draw(self)
62
---> 63 self.bitmap = _convert_agg_to_wx_bitmap
(self.get_renderer(), None)
64 if repaint:
65 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
--------
I also tried using the TkAgg backend, which produces very different
complaints, e.g:
----------------
In [16]: rcParamsDefault['backend']
Out[16]: 'TkAgg'
<snip>
In [18]: plot([1,2,3])
<snip>
exceptions.TypeError Traceback (most
recent call last)
<snip>
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-
packages/matplotlib/axes.py in set_xlim(self, xmin, xmax, emit)
1225 xmax += 1e-38
1226
-> 1227 self.viewLim.intervalx().set_bounds(xmin, xmax)
1228 if emit: self._send_xlim_event()
1229 return xmin, xmax
<snip>
TypeError: only length-1 arrays can be converted to Python scalars.
-----------------
Have any of you been able to use matplotlib w/ipython in the MacPorts
setting? What am I doing incorrectly?
Thanks again,
--b
More information about the Pythonmac-SIG
mailing list