Hi,
I have a Macbook with OS 10.6.6 with a fink installation and am still using
python 2.5.5. I installed matplotlib 1.0.0. The backend is Tkagg.
Trying to start a plot causes a crash of the python shell as follows:
bash-3.2$ python2.5
Python 2.5.5 (r255:77872, Mar 27 2011, 11:08:21)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> get_backend()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'get_backend' is not defined
>>> pylab.get_backend()
'TkAgg'
>>> ion()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'ion' is not defined
>>> pylab.ion()
>>> fig1 = pylab.figure(1)
Exception in Tkinter callback
Traceback (most recent call last):
File "/sw/lib/python2.5/lib-tk/Tkinter.py", line 1414, in __call__
return self.func(*args)
File "/sw/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py",
line 248, in resize
self.show()
File "/sw/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py",
line 252, in draw
tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
File "/sw/lib/python2.5/site-packages/matplotlib/backends/tkagg.py", line 19,
in blit
tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode,
id(bbox_array))
TclError
>>> alloc: invalid block: 0x102092f50: 0 35
Abort trap
bash-3.2$
So opening a figure causes the crash.
Any suggestions on how to fix this? Did anyone else have this problem?
Could it be that there is an incompatibility with gcc ? the Fink installation
has gcc 4.5.
Any suggestions will be appreciated. At the moment moving to python 2.6 or 2.7
seems a good idea, but it will involve a lot of testing of my code.
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users