Re: Atlas and NumPy Problems

From: Robert Kern (rkern_at_ucsd.edu)
Date: 02/03/05


Date: Wed, 02 Feb 2005 20:34:50 -0800

Robert Kern wrote:
> Justin Lemkul wrote:
>
>> Hello all,
>>
>> I am hoping someone out there will be able to help me. I am trying to
>> install a program that utilizes NumPy. In installing NumPy, I
>> realized that I was lacking Atlas. I ran into the following problems
>> installing Atlas and NumPy, as I realized that NumPy could be
>> installed using the Mac OSX veclib already built in. If anyone has
>> any ideas on how to fix either of these, I would be most grateful.
>>
>> I am fairly new to Python (I've been learning it myself), so I
>> apologize if these questions are a bit foolish. I've been fighting
>> these problems for days, and I'm out of ideas.
>>
>> I am running OS X v10.3, gcc v3.3, Python v2.3, ScientificPython
>> v2.4.3, and am attempting to install NumPy 23.7
>
>
> Did you try to follow my advice from the other thread? What does your
> setup.py look like?

For the record, he did in fact follow my advice (removing the
ATLAS-specific defaults and letting setup.py autodetect the vecLib
framework), and it turns out my advice was incomplete.

One also needs to add

   extra_link_args=extra_link_args,

to the argument list of the Extension() call for the _dotblas module.

It worked fine on my machine because I had modified my Python config to
use "-undefined dynamic_lookup" instead of explicit -framework arguments
(this change is necessary for the neighborly cohabitation of different
Python versions, I believe. See the PythonMac-SIG archives for more
information).

-- 
Robert Kern
rkern@ucsd.edu
"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter


Relevant Pages

  • Re: Broken Python 2.6 installation on Ubuntu Linux 8.04
    ... I've written my own Python modules before, ... Numpy 1.4.0 tarball, and I succeeded in installing it. ...
    (comp.lang.python)
  • Re: Why these dont work??
    ... This isn't valid Python in any version that I'm aware of. ... you need to have numpy installed. ... The best method for installing numpy would depend on your system, ... the system Python comes with ...
    (comp.lang.python)
  • Re: Does Numpy work on QNX 4.25 with Python 2.2?
    ... Robert Kern writes: ... get them work on a QNX 4.25 system. ... I think using Numpy is really necessary. ... numpy requires Python 2.3+. ...
    (comp.lang.python)
  • Re: Does Numpy work on QNX 4.25 with Python 2.2?
    ... Robert Kern wrote: ... get them work on a QNX 4.25 system. ... I think using Numpy is really necessary. ... numpy requires Python 2.3+. ...
    (comp.lang.python)
  • ANN: NumPy 1.5.0 release
    ... NumPy release to include support for Python 3, as well as for Python 2.7. ... A trimdeg method has been added to the Polynomial class. ... A trimdeg method has been added to the Chebyshev class. ...
    (comp.lang.python.announce)