Re: [Numpy-discussion] PyArray_FromDims segfault??

2006-12-30 Thread Travis Oliphant
Xavier Gnata wrote: > Hello, > > I would like to use PyObject_CallObject to call the imshow function from > matplolib from a C code. > So, the first step is to create a 2D PyArrayObject from a C array. > > I have read the Numpy book which is great but now I'm puzzled: > My goal is to convert a C ar

Re: [Numpy-discussion] numpy install on mac os x 10.4

2006-12-30 Thread belinda thom
Not sure if this helps but I stumbled upon the following trick. Do the following: 1) install g77 via instructions at: http://www.scipy.org/Installing_SciPy/Mac_OS_X. in particular download: http://prdownloads.sf.net/hpc/g77v3.4-bin.tar.gz?download and then do: sudo tar -xvf g77v3.4-

Re: [Numpy-discussion] numpy install on mac os x 10.4

2006-12-30 Thread Christopher Barker
belinda thom wrote: > Advice on a painless way to install scipy on my G5 OS X 10.4.8 mac > greatly appreciated. Sorry, there isn't one at this point -- I think numpy, SciPy, MPL, and wx are all fairly stable right now, so it's a pretty good time to do it, but it's a challenge because: 1) Sci

[Numpy-discussion] PyArray_FromDims segfault??

2006-12-30 Thread Xavier Gnata
Hello, I would like to use PyObject_CallObject to call the imshow function from matplolib from a C code. So, the first step is to create a 2D PyArrayObject from a C array. I have read the Numpy book which is great but now I'm puzzled: My goal is to convert a C array of doubles into a 2D numpy arr

Re: [Numpy-discussion] numpy install on mac os x 10.4

2006-12-30 Thread belinda thom
>> I'm wondering why the os-related file names that easy_install creates >> have macosx-10.3 in them (as opposed to 10.4), e.g. >> >>creating /Library/Frameworks/Python.framework/Versions/2.4/lib/ >> python2.4/site-packages/numpy-1.0.1-py2.4-macosx-10.3-fat.egg >> >> Is this something I should

Re: [Numpy-discussion] numpy install on mac os x 10.4

2006-12-30 Thread Robert Kern
belinda thom wrote: > Hi, > > I just used easy_install to get the latest version of numpy. Is this > the "preferred" method for installing? > > I'm on a G5 w/mac OS X 10.4 and MacPython 2.4. > > I'm wondering why the os-related file names that easy_install creates > have macosx-10.3 in them