In article <[EMAIL PROTECTED]>, Christopher Barker <[EMAIL PROTECTED]> wrote:
> Russell E Owen wrote: > >> well, I didnt' mean more than one numerix option, exactly. What I meant > >> was that MPL is using numarray, but another module you've imported is > >> using Numeric (or numpy or whatever). > > > > Ah. I can guarantee that's happening. Some of my code uses Numeric (due > > to high speed on short arrays) and some uses numarray (because I started > > using it for all new code when it looked like it would take over). > > Then this could be it. In general, they should co-exist just fine, but > do know someone else has weird crashing problems when they were mixed > with MPL (and GDAL, in his case). Both numpy and Numeric, and numarray > have a lot of extension code that shares names, etc. who knows what > problem that can cause? > > > I > > hope to switch to numpy for everything once the dust settles, > > good plan, and it's getting close. The API should be stable now. The > sooner the better, I think. You'll be a lot more help with bugs or > potential bugs like this one. I look forward to the unification, but unfortunately I don't think it will help with this crash (unless the very fact that the numarray and/or Numeric are installed but not loaded can cause problems). I see the crash even with this trivial script: $ python >>> from pylab import * >>> plot([1,2,3,4]) >>> show() boom! matplotlib 0.87.5 crashes with ~/.matplotlib/matplotlibrc set to use numarray (1.5.1), Numeric or numpy (1.0b5). > > I don't have wx or gtk installed, so no easy way to test those backends. > > if you install the mpkg on pythonmac.org/packages, wx should work. > that's pretty easy. Fair enough. I installed wxPython (2.6) and the above scripts works fine (as long as interactive is false). > > It does not crash with plain old Agg (but of course I don't see any plot). > > Does it save a png successfully? I can try this if you think it will help. It appears to be a lot more work than just slapping up a plot using pylab so I've not tried it yet. I also failed to build matplotlib from source. I had all the prerequisites in /usr/local (and I reinstalled freetype 2.2.1 to be sure, since the version shown in /usr/local/lib has no resemblance to the source version). During the build I see these warnings (but no errors): /usr/bin/ld: for architecture i386 /usr/bin/ld: warning /usr/local/lib/libpng.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) and after installation, importation of pylab fails as follows: >>> from pylab import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/pylab.py", line 1, in ? from matplotlib.pylab import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/pylab.py", line 200, in ? from axes import Axes, PolarAxes File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/axes.py", line 15, in ? from axis import XAxis, YAxis File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/axis.py", line 25, in ? from font_manager import FontProperties File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/font_manager.py", line 39, in ? from matplotlib import ft2font ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pack ages/matplotlib/ft2font.so: Symbol not found: _FMDisposeFontFamilyIterator Referenced from: /usr/local/lib/libfreetype.6.dylib Expected in: flat namespace -- Russell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users