Re: [Numpy-discussion] How do I make numpy raise exceptions instead of print warnings?

2008-03-30 Thread Roy H. Han
Thank you, Robert! numpy.seterr() is very helpful. It is just what I needed. numpy.seterr(all = 'raise') forces numpy to raise exceptions instead of printing warnings. [begin quote] numpy.seterr(all = None, divide = None, over = None, under = None, invalid = None) Valid values for each type of

[Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)

2008-03-30 Thread Joshua Lippai
I am using Mac OS X 10.5.2, with Python 2.5.2. My build output for NumPy is clean and successful and my numpy.test produces no errors or failures, but when I type f2py from Terminal, I get the following: $ f2py Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Version

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Robert Kern
On Sun, Mar 30, 2008 at 9:20 PM, Harry Mangalam <[EMAIL PROTECTED]> wrote: > On Sunday 30 March 2008, Robert Kern wrote: > > On Sun, Mar 30, 2008 at 8:16 PM, Harry Mangalam > <[EMAIL PROTECTED]> wrote: > > > Answering part of my own question, one missing lib is (not > > > surprisingly) libpyth

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Robert Kern
On Sun, Mar 30, 2008 at 9:20 PM, Harry Mangalam <[EMAIL PROTECTED]> wrote: > On Sunday 30 March 2008, Robert Kern wrote: > > On Sun, Mar 30, 2008 at 8:16 PM, Harry Mangalam > <[EMAIL PROTECTED]> wrote: > > > Answering part of my own question, one missing lib is (not > > > surprisingly) libpyth

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Harry Mangalam
On Sunday 30 March 2008, Robert Kern wrote: > On Sun, Mar 30, 2008 at 8:16 PM, Harry Mangalam <[EMAIL PROTECTED]> wrote: > > Answering part of my own question, one missing lib is (not > > surprisingly) libpython2.5 (add -lpython2.5) so that the link > > command is: > > No, it isn't. They are "-un

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Robert Kern
On Sun, Mar 30, 2008 at 8:16 PM, Harry Mangalam <[EMAIL PROTECTED]> wrote: > Answering part of my own question, one missing lib is (not > surprisingly) libpython2.5 (add -lpython2.5) so that the link command > is: No, it isn't. They are "-undefined dynamic_lookup -bundle", most likely. This is a

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Harry Mangalam
Answering part of my own question, one missing lib is (not surprisingly) libpython2.5 (add -lpython2.5) so that the link command is: /usr/local/bin/g95 -L/opt/local/lib/ \ /tmp/tmp1r96Q9/tmp/tmp1r96Q9/src.macosx-10.3-ppc-2.5/fd_rrt1dmodule.o\ /tmp/tmp1r96Q9/tmp/tmp1r96Q9/src.macosx-10.3-ppc-2.

[Numpy-discussion] whitespace error in automatic generation of Numpy_Example_List_With_Doc/script

2008-03-30 Thread josef pumuckl
Hi, I was trying to automatically doctest some of the examples in Numpy_Example_List_With_Doc and obtained a large number of whitespace errors. The tests, that I tried, passed after turning of whitespace checking in doctest. Later I saw that the original numpy example list has leading whitespace

Re: [Numpy-discussion] f2py from numpy 1.0.5 on OSX 10.4.11/QuadPPC fails with undefined symbols

2008-03-30 Thread Harry Mangalam
Hi Robert, thanks very much for your help - responses inline below. On Friday 28 March 2008, Robert Kern wrote: > Can you triple-check that the "unset LDFLAGS" worked by using > env(1)? You still seem to have a -L/Users/hjm/lib flag that is > obviously not coming from the command line. $ env |gre