[Numpy-discussion] problems installing NumPy on OSX

Arild B. Næss arildna at stud.ntnu.no
Sun Dec 3 09:56:49 CST 2006


Den 5. nov. 2006 kl. 20.26 skrev Steve Lianoglou:

>> I'm sorry, I was a tad too quick typing there. I meant to say "And do
>> I even need to [install Xcode] to run numpy?" Robert pointed out that
>> a lot things mentioned in the install guide were necessary to run
>> scipy, but that you could run numpy without them.
>>
>> Therefore I was wondering if installing the newest Xcode package was
>> likely to fix the error message I am now getting when trying to
>> install numpy:
>
> I think Robert may have suggested to install the newest XCode because
> it will give you a newer gcc that can have a better chance compiling
> numpy correctly (or at least will remove another "unkown" to help
> find your true problem).
>
> Maybe there'd be some "Universal Binary-aware"ness that the old xcode
> gcc might be missing that you'll get w/ the new one and since Python
> 2.5 is universal, this might be it. Getting the new xcode would be
> the simplest part of the install anyway, so .. why not :-)
>
> -steve


Hi again,

I had to make do without numpy for what I was originally planning to  
use it for, and I've been busy for a while, as well as fed up of not  
getting this thing to work.

I've realized I'm really going to need it if I am to continue using  
python though, so I've installed the new  XCode and given it another  
try.

This gets me further, actually the installation seems to complete.  
However, when I type
 >> import Numeric
in Python, I get the usual ImportError: No module named Numeric.

 >> import numpy
works, but
 >>> a= array([[1,2,3],[4,5,6]])
tells me array is not defined.

So the installation obviously hasn't worked.

I'm sure some of you are as tired of hearing about this as I am of  
writing about it, but I really have no idea what to do here. The  
installation output in the terminal window is quite long, so I have  
only copied in the parts that seem to contain some kind of error  
message (see below).

First it says that g77, f77, gfortran and f95 is missing, then I've  
copied in a long part where there is a lot of small errors:
	- a series of errors in configtests
	- 4 instances of "nothing done with h_files=..."
	- some more failing configtests with an "#error No _WIN32"

Hope somebody can help.

regards,
Arild Næss

------------------------------------------------------------------------ 
-------------------

Could not locate executable g77
Could not locate executable f77
Could not locate executable gfortran
Could not locate executable f95

...

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
gcc: _configtest.c
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//cczgPhx0.out
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//cczgPhx0.out
failure.
removing: _configtest.c _configtest.o
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
gcc: _configtest.c
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccEAgr9A.out
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccEAgr9A.out
failure.
removing: _configtest.c _configtest.o
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/config.h' to  
sources.
executing numpy/core/code_generators/generate_array_api.py
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/ 
__multiarray_api.h' to sources.
creating build/src.macosx-10.3-fat-2.5/numpy/core/src
conv_template:> build/src.macosx-10.3-fat-2.5/numpy/core/src/ 
scalartypes.inc
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/src' to  
include_dirs.
conv_template:> build/src.macosx-10.3-fat-2.5/numpy/core/src/ 
arraytypes.inc
numpy.core - nothing done with h_files= ['build/src.macosx-10.3- 
fat-2.5/numpy/core/src/scalartypes.inc', 'build/src.macosx-10.3- 
fat-2.5/numpy/core/src/arraytypes.inc', 'build/src.macosx-10.3- 
fat-2.5/numpy/core/config.h', 'build/src.macosx-10.3-fat-2.5/numpy/ 
core/__multiarray_api.h']
building extension "numpy.core.umath" sources
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/config.h' to  
sources.
executing numpy/core/code_generators/generate_ufunc_api.py
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/__ufunc_api.h' to  
sources.
conv_template:> build/src.macosx-10.3-fat-2.5/numpy/core/src/ 
umathmodule.c
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/src' to  
include_dirs.
numpy.core - nothing done with h_files= ['build/src.macosx-10.3- 
fat-2.5/numpy/core/src/scalartypes.inc', 'build/src.macosx-10.3- 
fat-2.5/numpy/core/src/arraytypes.inc', 'build/src.macosx-10.3- 
fat-2.5/numpy/core/config.h', 'build/src.macosx-10.3-fat-2.5/numpy/ 
core/__ufunc_api.h']
building extension "numpy.core._sort" sources
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/config.h' to  
sources.
executing numpy/core/code_generators/generate_array_api.py
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/ 
__multiarray_api.h' to sources.
conv_template:> build/src.macosx-10.3-fat-2.5/numpy/core/src/ 
_sortmodule.c
numpy.core - nothing done with h_files= ['build/src.macosx-10.3- 
fat-2.5/numpy/core/config.h', 'build/src.macosx-10.3-fat-2.5/numpy/ 
core/__multiarray_api.h']
building extension "numpy.core.scalarmath" sources
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/config.h' to  
sources.
executing numpy/core/code_generators/generate_array_api.py
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/ 
__multiarray_api.h' to sources.
executing numpy/core/code_generators/generate_ufunc_api.py
   adding 'build/src.macosx-10.3-fat-2.5/numpy/core/__ufunc_api.h' to  
sources.
conv_template:> build/src.macosx-10.3-fat-2.5/numpy/core/src/ 
scalarmathmodule.c
numpy.core - nothing done with h_files= ['build/src.macosx-10.3- 
fat-2.5/numpy/core/config.h', 'build/src.macosx-10.3-fat-2.5/numpy/ 
core/__multiarray_api.h', 'build/src.macosx-10.3-fat-2.5/numpy/core/ 
__ufunc_api.h']
building extension "numpy.core._dotblas" sources
   adding 'numpy/core/blasdot/_dotblas.c' to sources.
building extension "numpy.lib._compiled_base" sources
building extension "numpy.numarray._capi" sources
building extension "numpy.fft.fftpack_lite" sources
building extension "numpy.linalg.lapack_lite" sources
creating build/src.macosx-10.3-fat-2.5/numpy/linalg
   adding 'numpy/linalg/lapack_litemodule.c' to sources.
building extension "numpy.random.mtrand" sources
creating build/src.macosx-10.3-fat-2.5/numpy/random
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
gcc: _configtest.c
_configtest.c:7:2: error: #error No _WIN32
_configtest.c:7:2: error: #error No _WIN32
lipo: can't figure out the architecture type of: /var/tmp//ccojlBrt.out
_configtest.c:7:2: error: #error No _WIN32
_configtest.c:7:2: error: #error No _WIN32
lipo: can't figure out the architecture type of: /var/tmp//ccojlBrt.out
failure.
removing: _configtest.c _configtest.o




More information about the Numpy-discussion mailing list