SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Tom L. <lo...@as...> - 2005年12月19日 04:31:13
Hi folks,
I'm having trouble building the current CVS version of mpl
on OS X (10.3.9, Python 2.4). I am not using the 0.85 release
because I want to use numerix=scipy. I previously installed
a CVS checkout from Dec 2, and it built fine. It seemed to
plot fine, except that the TeX example produced blank or
flat-line labels. I just installed the latest scipy_core
release (and the latest scipy from svn), and also thought
I'd try the latest mpl from CVS to see if the TeX problem was
fixed. Now it won't build; about 6min into the build it exits:
gcc: src/mplutils.cpp
gcc: CXX/cxx_extensions.cxx
gcc: src/_na_transforms.cpp
src/_na_transforms.cpp: In member function `Py::Object 
 Bbox::update_numerix(const Py::Tuple&)':
src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function)
src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only 
 once for each function it appears in.)
src/_na_transforms.cpp: In member function `Py::Object 
 Bbox::update_numerix(const Py::Tuple&)':
src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function)
src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only 
 once for each function it appears in.)
error: Command "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/sw/include -I. -I/Library/
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/_na_transforms.cpp -o build/temp.darwin-7.9.0-
Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=1" failed with exit status 1
I'd appreciate any help on how to fix this. I'm teaching a class
of students using Python in about 4 weeks, and I need to provide
them a version of things to set up on their laptops that I know
will work with my examples.
Thanks,
Tom
PS: If anyone has any tips on getting scipy to build properly on
OS X, pass them along. The current version appears unable to find
Apple's atlas, nor does it find the fftw libraries I installed in
/usr/lib.
 
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
From: Paul B. <peb...@gm...> - 2005年12月19日 05:21:57
Tom,
The output to gcc shows that NUMARRAY is defined. Try undefining NUMARRAY
and NUMERIC.
 -- Paul
On 12/18/05, Tom Loredo <lo...@as...> wrote:
>
>
> Hi folks,
>
> I'm having trouble building the current CVS version of mpl
> on OS X (10.3.9, Python 2.4). I am not using the 0.85 release
> because I want to use numerix=3Dscipy. I previously installed
> a CVS checkout from Dec 2, and it built fine. It seemed to
> plot fine, except that the TeX example produced blank or
> flat-line labels. I just installed the latest scipy_core
> release (and the latest scipy from svn), and also thought
> I'd try the latest mpl from CVS to see if the TeX problem was
> fixed. Now it won't build; about 6min into the build it exits:
>
> gcc: src/mplutils.cpp
> gcc: CXX/cxx_extensions.cxx
> gcc: src/_na_transforms.cpp
> src/_na_transforms.cpp: In member function `Py::Object
> Bbox::update_numerix(const Py::Tuple&)':
> src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this
> function)
> src/_na_transforms.cpp:493: error: (Each undeclared identifier is reporte=
d
> only
> once for each function it appears in.)
> src/_na_transforms.cpp: In member function `Py::Object
> Bbox::update_numerix(const Py::Tuple&)':
> src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this
> function)
> src/_na_transforms.cpp:493: error: (Each undeclared identifier is reporte=
d
> only
> once for each function it appears in.)
> error: Command "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/sw/include -I. -I/Library/
> Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
> src/_na_transforms.cpp -o build/temp.darwin-7.9.0-
> Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=3D1" failed with exit
> status 1
>
> I'd appreciate any help on how to fix this. I'm teaching a class
> of students using Python in about 4 weeks, and I need to provide
> them a version of things to set up on their laptops that I know
> will work with my examples.
>
> Thanks,
> Tom
>
> PS: If anyone has any tips on getting scipy to build properly on
> OS X, pass them along. The current version appears unable to find
> Apple's atlas, nor does it find the fftw libraries I installed in
> /usr/lib.
>
>
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
--
Paul Barrett, PhD Johns Hopkins University
Assoc. Research Scientist Dept of Physics and Astronomy
Phone: 410-516-5190 Baltimore, MD 21218
From: Jouni K S. <jk...@ik...> - 2005年12月19日 06:21:50
Attachments: isnan.patch
Tom Loredo <lo...@as...> writes:
> I'm having trouble building the current CVS version of mpl
> on OS X (10.3.9, Python 2.4). [...] numerix=scipy [...]
> src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function)
I'm having the same problem in _nc_transforms.cpp, and I'm building on
OS X 10.4.3, Python 2.4, gcc 4.0, and with -DNUMERIC=1 (no numarray,
no scipy). It seems that the relevant lines in _transforms.cpp were
last modified by astraw on 15-Dec-05.
The following one-line change seems to fix that problem (but the rest
of the build hasn't finished yet). I don't know what this does in
other compilers, but comments in gcc's cmath suggest that the standard
requires isnan to be in the std namespace.
-- 
Jouni K Seppänen
From: Andrew S. <str...@as...> - 2005年12月19日 07:05:52
Tom, thanks for the bug report and Jouni thanks for the fix, which I've
just checked in.
Cheers!
Andrew
Jouni K Seppanen wrote:
>Tom Loredo <lo...@as...> writes:
>
> 
>
>>I'm having trouble building the current CVS version of mpl
>>on OS X (10.3.9, Python 2.4). [...] numerix=scipy [...]
>>src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function)
>> 
>>
>
>I'm having the same problem in _nc_transforms.cpp, and I'm building on
>OS X 10.4.3, Python 2.4, gcc 4.0, and with -DNUMERIC=1 (no numarray,
>no scipy). It seems that the relevant lines in _transforms.cpp were
>last modified by astraw on 15-Dec-05.
>
>The following one-line change seems to fix that problem (but the rest
>of the build hasn't finished yet). I don't know what this does in
>other compilers, but comments in gcc's cmath suggest that the standard
>requires isnan to be in the std namespace.
>
> 
>
>------------------------------------------------------------------------
>
>Index: src/_transforms.cpp
>===================================================================
>RCS file: /cvsroot/matplotlib/matplotlib/src/_transforms.cpp,v
>retrieving revision 1.39
>diff -u -r1.39 _transforms.cpp
>--- src/_transforms.cpp	15 Dec 2005 04:54:52 -0000	1.39
>+++ src/_transforms.cpp	19 Dec 2005 06:14:42 -0000
>@@ -444,6 +444,7 @@
> Py::Object
> Bbox::update_numerix(const Py::Tuple &args) {
> //update the boox from the numerix arrays x and y
>+ using std::isnan;
> _VERBOSE("Bbox::update_numerix");
> 
> args.verify_length(3);
> 
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /