ANN: matplotlib-0.86.2

Minor release to correspond with numpy-0.9.4 compatibility changes.

http://sourceforge.net/project/showfiles.php?group_id=80706
http://cheeseshop.python.org/pypi/matplotlib/

···

===============================================================
2006-01-24 Released 0.86.2

2006-01-20 Added a converters dict to pylab load to convert selected
           coloumns to float -- especially useful for files with date
           strings, uses a datestr2num converter - JDH

2006-01-20 Added datestr2num to matplotlib dates to convert a string
           or sequence of strings to a matplotlib datenum

2006-01-18 Added quadrilateral pcolormesh patch 1409190 by Alex Mont
           and Paul Kienzle -- this is *Agg only for now. See
           examples/quadmesh_demo.py - JDH

2006-01-18 Added Jouni's boxplot patch - JDH

2006-01-18 Added comma delimiter for pylab save - JDH

2006-01-12 Added Ryan's legend patch - JDH

2006-1-12 Fixed numpy / numeric to use .dtype.char to keep in SYNC
with numpy SVN

I am trying to build 0.86.2 on OS X 10.4.4 with framework build of python 2.4.2
I have default gcc set to 3.3

when I run sudo python setup.py build I get the following error

gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/usr/local/include -I/usr/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c src/_na_transforms.cpp -o build/temp.darwin-8.4.0-Power_Macintosh-2.3/src/_na_transforms.o -DNUMARRAY=1
src/_na_transforms.cpp:7:37: numarray/arrayobject.h: No such file or directory
src/_na_transforms.cpp: In member function `Py::Object
    Bbox::update_numerix(const Py::Tuple&)':
src/_na_transforms.cpp:455: error: `PyArrayObject' undeclared (first use this
    function)
src/_na_transforms.cpp:455: error: (Each undeclared identifier is reported only
    once for each function it appears in.)
src/_na_transforms.cpp:455: error: `x' undeclared (first use this function)
src/_na_transforms.cpp:455: error: parse error before `)' token
src/_na_transforms.cpp:461: error: `y' undeclared (first use this function)
src/_na_transforms.cpp:461: error: parse error before `)' token
src/_na_transforms.cpp: In member function `Py::Object
    Transformation::numerix_x_y(const Py::Tuple&, const Py::Dict&)':
src/_na_transforms.cpp:848: error: parse error before `)' token
src/_na_transforms.cpp:854: error: parse error before `)' token
src/_na_transforms.cpp:879: error: `retx' undeclared (first use this function)
src/_na_transforms.cpp:879: error: parse error before `)' token
src/_na_transforms.cpp:886: error: `rety' undeclared (first use this function)
src/_na_transforms.cpp:886: error: parse error before `)' token
src/_na_transforms.cpp: In member function `Py::Object
    Transformation::nonlinear_only_numerix(const Py::Tuple&, const Py::Dict&)':
src/_na_transforms.cpp:933: error: parse error before `)' token
src/_na_transforms.cpp:939: error: parse error before `)' token
src/_na_transforms.cpp:955: error: parse error before `)' token
src/_na_transforms.cpp:962: error: parse error before `)' token
src/_na_transforms.cpp:970: error: `retmask' undeclared (first use this
    function)
src/_na_transforms.cpp:973: error: parse error before `)' token
src/_na_transforms.cpp: In function `void init_na_transforms()':
src/_na_transforms.cpp:2068: error: `import_array' undeclared (first use this
    function)
error: command 'gcc' failed with exit status 1

It looks like its expecting there to be a source distribution of numarray some place

Anyone know what I need to do to fix this?

The numarray headers are installed along with numarray. Try
locating the file "numarray/arrayobject.h" on your computer. MPL is
finding the numarray module, so they must be around somewhere.
     Say you find it in "/foo/bar/numarray/arrayobject.h". Try
running this command:

CPPFLAGS="-I/foo/bar/" sudo python setup.py build

If you can't find the file, then tell us how you installed numarray.

- Charlie

···

On 2/1/06, Samuel M. Smith <smithsm@...755...> wrote:

I am trying to build 0.86.2 on OS X 10.4.4 with framework build of
python 2.4.2
I have default gcc set to 3.3

when I run sudo python setup.py build I get the following error

gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
Isrc -I. -I/usr/local/include -I/usr/include -I. -I/System/Library/
Frameworks/Python.framework/Versions/2.3/include/python2.3 -c src/
_na_transforms.cpp -o build/temp.darwin-8.4.0-Power_Macintosh-2.3/src/
_na_transforms.o -DNUMARRAY=1
src/_na_transforms.cpp:7:37: numarray/arrayobject.h: No such file or
directory
src/_na_transforms.cpp: In member function `Py::Object
    Bbox::update_numerix(const Py::Tuple&)':
src/_na_transforms.cpp:455: error: `PyArrayObject' undeclared (first
use this
    function)
src/_na_transforms.cpp:455: error: (Each undeclared identifier is
reported only
    once for each function it appears in.)
src/_na_transforms.cpp:455: error: `x' undeclared (first use this
function)
src/_na_transforms.cpp:455: error: parse error before `)' token
src/_na_transforms.cpp:461: error: `y' undeclared (first use this
function)
src/_na_transforms.cpp:461: error: parse error before `)' token
src/_na_transforms.cpp: In member function `Py::Object
    Transformation::numerix_x_y(const Py::Tuple&, const Py::Dict&)':
src/_na_transforms.cpp:848: error: parse error before `)' token
src/_na_transforms.cpp:854: error: parse error before `)' token
src/_na_transforms.cpp:879: error: `retx' undeclared (first use this
function)
src/_na_transforms.cpp:879: error: parse error before `)' token
src/_na_transforms.cpp:886: error: `rety' undeclared (first use this
function)
src/_na_transforms.cpp:886: error: parse error before `)' token
src/_na_transforms.cpp: In member function `Py::Object
    Transformation::nonlinear_only_numerix(const Py::Tuple&, const
Py::Dict&)':
src/_na_transforms.cpp:933: error: parse error before `)' token
src/_na_transforms.cpp:939: error: parse error before `)' token
src/_na_transforms.cpp:955: error: parse error before `)' token
src/_na_transforms.cpp:962: error: parse error before `)' token
src/_na_transforms.cpp:970: error: `retmask' undeclared (first use this
    function)
src/_na_transforms.cpp:973: error: parse error before `)' token
src/_na_transforms.cpp: In function `void init_na_transforms()':
src/_na_transforms.cpp:2068: error: `import_array' undeclared (first
use this
    function)
error: command 'gcc' failed with exit status 1

It looks like its expecting there to be a source distribution of
numarray some place

Anyone know what I need to do to fix this?

I had installed numarray 1.1.1 and Numeric 23.7 using package installers from http://pythonmac.org/packages/
I downloaded numarray 1.5 tarball and unpacked it. I used the following command pointing to the include directory
in the 1.5 distribution.

CPPFLAGS="-I/foo/bar/" sudo python setup.py build

  My previous error went away but I go another similar error for Numeric.

gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/install/python/macpython/python2.4.2/numerical/numarray-1.5.0/include -Isrc -I. -I/usr/local/include -I/usr/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c src/_nc_transforms.cpp -o build/temp.darwin-8.4.0-Power_Macintosh-2.3/src/_nc_transforms.o -DNUMERIC=1
src/_nc_transforms.cpp:10:40: Numeric/arrayobject.h: No such file or directory

so I download Numeric 24.2 and decided to go ahead and install it. Which was successful
While I was at it I decided to install numarray 1.5 which installed without complaining but when I tried to import it to test

I get the following error

>>> import numarray
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/__init__.py", line 42, in ?
     from numarrayall import *
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/numarrayall.py", line 2, in ?
     from generic import *
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/generic.py", line 1036, in ?
     import numarraycore as _nc
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/numarraycore.py", line 1472, in ?
     import ufunc
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/ufunc.py", line 1658, in ?
     _choose = _ChooseUFunc()
TypeError: function takes exactly 5 arguments (0 given)

I then tried doing a python setup.py clean in the matplotlib distribution directory and the clean failed because
it also tries to import numarray.

So I guess now I have to fix numarray. Any Ideas what is broken?

The only thing I can guess is not everything was cleared out from your
previous numarray installation. Maybe a conflict?! Try just deleting
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/"
completely and reinstalling.

···

On 2/1/06, Samuel M. Smith <smithsm@...755...> wrote:

I had installed numarray 1.1.1 and Numeric 23.7 using package
installers from http://pythonmac.org/packages/
I downloaded numarray 1.5 tarball and unpacked it. I used the
following command pointing to the include directory
in the 1.5 distribution.

> CPPFLAGS="-I/foo/bar/" sudo python setup.py build

  My previous error went away but I go another similar error for
Numeric.

gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
I/install/python/macpython/python2.4.2/numerical/numarray-1.5.0/
include -Isrc -I. -I/usr/local/include -I/usr/include -I. -I/System/
Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c
src/_nc_transforms.cpp -o build/temp.darwin-8.4.0-Power_Macintosh-2.3/
src/_nc_transforms.o -DNUMERIC=1
src/_nc_transforms.cpp:10:40: Numeric/arrayobject.h: No such file or
directory

so I download Numeric 24.2 and decided to go ahead and install it.
Which was successful
While I was at it I decided to install numarray 1.5 which installed
without complaining but when I tried to import it to test

I get the following error

>>> import numarray
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numarray/__init__.py", line 42, in ?
     from numarrayall import *
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numarray/numarrayall.py", line 2, in ?
     from generic import *
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numarray/generic.py", line 1036, in ?
     import numarraycore as _nc
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numarray/numarraycore.py", line 1472, in ?
     import ufunc
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numarray/ufunc.py", line 1658, in ?
     _choose = _ChooseUFunc()
TypeError: function takes exactly 5 arguments (0 given)

I then tried doing a python setup.py clean in the matplotlib
distribution directory and the clean failed because
it also tries to import numarray.

So I guess now I have to fix numarray. Any Ideas what is broken?