In article <450ED0D1.4020304@...259...>,
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?
> 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:
from pylab import *
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
/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 ?
kages/pylab.py", line 1, in ?
from matplotlib.pylab import *
kages/matplotlib/pylab.py", line 200, in ?
from axes import Axes, PolarAxes
kages/matplotlib/axes.py", line 15, in ?
from axis import XAxis, YAxis
kages/matplotlib/axis.py", line 25, in ?
from font_manager import FontProperties
kages/matplotlib/font_manager.py", line 39, in ?
from matplotlib import ft2font
ImportError: Failure linking new module:
ages/matplotlib/ft2font.so: Symbol not found:
Referenced from: /usr/local/lib/libfreetype.6.dylib
Expected in: flat namespace
Christopher Barker <Chris.Barker@...259...> wrote: