![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Hi, I'm sorry if this might seem like a stupid question to some of you, but I have been struggling for the better part of the afternoon trying to install NumPy on my G4 iBook, so I hope somebody can take the time to lend me a helping hand. I have searched a little in the mail archives and tried to follow the instructions on this page: http://www.scipy.org/Installing_SciPy/Mac_OS_X Python 2.5 is installed, and I have installed Apple's Developer's Tools (i.e. the package "December 2002 Mac OS X Developer Tools"). The GCC/G77-installation seemed to go ok. When I try to install the FFW libraries however, I get an error message telling me that my "C compiler cannot create executables" (full output below). After that I didn't really expect the installation of NumPy to work, but I got a "permission denied"-error message that I'm not so sure is connected to the missing FFW. So I'm at loss... Anyone? Many thanks, Arild Næss =============================================================== %pwd /Users/arildnss/Desktop/fftw-3.1.2 %./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... powerpc-apple-darwin8.8.0 checking host system type... powerpc-apple-darwin8.8.0 checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. %pwd /Users/arildnss/Desktop/numpy-1.0 %python setup.py build Running from numpy source directory. F2PY Version 2_3396 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] lapack_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec'] running build running config_fc running build_src building py_modules sources error: build/src.macosx-10.3-fat-2.5/numpy/distutils/__config__.py: Permission denied ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
Note that these are instructions for installing scipy, so there is a lot there that you don't need to do just to install numpy. Notably, some of the things that you are having problems with.
You probably can't use g77 along with Python 2.5. Python 2.5 is built with gcc 4.0 but g77 never got ported to the 4.x platform. However, it's not at all necessary for numpy.
numpy does not use FFTW at all, so don't let this hold you up. If you want to troubleshoot the problem, however, look at the config.log file for more information. grep for the string "cannot create executables".
You probably tried to run a previous build or install as root. Delete the build/ directory (probably as root) and try another build as a regular user. Don't use root until you actually want to install (and then, only if you need to). -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Robert Kern <robert.kern@gmail.com>:
I did get the impression that it was kind of an overkill...
That got the installation a lot further, but it still halts with an error message, this time about failing to test the configuration. Arild Næss ========================================================================== % python setup.py build Running from numpy source directory. F2PY Version 2_3396 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] lapack_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec'] running build running config_fc running build_src building py_modules sources creating build creating build/src.macosx-10.3-fat-2.5 creating build/src.macosx-10.3-fat-2.5/numpy creating build/src.macosx-10.3-fat-2.5/numpy/distutils building extension "numpy.core.multiarray" sources creating build/src.macosx-10.3-fat-2.5/numpy/core Generating build/src.macosx-10.3-fat-2.5/numpy/core/config.h customize NAGFCompiler customize AbsoftFCompiler customize IbmFCompiler Could not locate executable g77 Could not locate executable f77 Could not locate executable gfortran Could not locate executable f95 customize GnuFCompiler customize Gnu95FCompiler customize G95FCompiler customize GnuFCompiler customize Gnu95FCompiler customize NAGFCompiler customize NAGFCompiler using config 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: '-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -Inumpy/core/src -Inumpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c' gcc: _configtest.c gcc: cannot specify -o with -c or -S and multiple compilations gcc: cannot specify -o with -c or -S and multiple compilations failure. removing: _configtest.c _configtest.o numpy/core/setup.py:50: DeprecationWarning: raising a string exception is deprecated raise "ERROR: Failed to test configuration" Traceback (most recent call last): File "setup.py", line 89, in <module> setup_package() File "setup.py", line 82, in setup_package configuration=configuration ) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/core.py", line 174, in setup return old_setup(**new_attr) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 151, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py", line 112, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 87, in run self.build_sources() File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 106, in build_sources self.build_extension_sources(ext) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 212, in build_extension_sources sources = self.generate_sources(sources, ext) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 270, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 50, in generate_config_h raise "ERROR: Failed to test configuration" ERROR: Failed to test configuration ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
You're using OS X 10.3.9? There is a bug in distutils on that platform. It was fixed in Python's trunk, but I'm not sure where to find it. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Robert Kern <robert.kern@gmail.com>:
No, I'm on OS X 10.4.8, so my OS version shouldn't be the problem Arild Næss ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
Python 2.5 is installed, and I have installed Apple's Developer's Tools (i.e. the package "December 2002 Mac OS X Developer Tools").
By the way, this is *really* old. Long before there were Universal binaries (which is what Python 2.5 is). I believe you will want to install Xcode 2.4.1 which was released on Tuesday. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Robert Kern <robert.kern@gmail.com>:
I was wondering about that, the instructions page on scipy.org wasn't very specific. I don't need anything else than Xcode 2.4.1, so I can remove the Dec2002 package? And do I need even to run numpy (and not scipy)? Arild Næss ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
Yes, remove the Dec2002 package and install Xcode 2.4.1. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/5dde29b54a3f1b76b2541d0a4a9b232c.jpg?s=120&d=mm&r=g)
I think it's time to get MacPython2.5 and a set up packages on PythonMac org, and build a numpy for it (and SciPy and Matplotlib too...) Bob, can you set up the page, and then we can start populating it? -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/b932b1e5a3e8299878e579f51f49b84a.jpg?s=120&d=mm&r=g)
On 11/6/06, Christopher Barker <Chris.Barker@noaa.gov> wrote:
I'll put it up when there's something to put there. Doesn't make sense to have an empty page. -bob ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/9db2458b7ef4e05c9ad963b9f60e43aa.jpg?s=120&d=mm&r=g)
Hi,
And do I need even to run numpy (and not scipy)?
I'm not sure what you mean with you last question here, but just in case it's not clear: If you want to use scipy, you need to install numpy. You do *not* have to install scipy if all you need is numpy. -steve ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Steve Lianoglou <lists.steve@arachnedesign.net>:
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: File "numpy/core/setup.py", line 50, in generate_config_h raise "ERROR: Failed to test configuration" ERROR: Failed to test configuration Arild ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/9db2458b7ef4e05c9ad963b9f60e43aa.jpg?s=120&d=mm&r=g)
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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Den 5. nov. 2006 kl. 20.26 skrev Steve Lianoglou:
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.
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
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux:
Hm, this doesn't work for you either? It says on this page that "import Numeric" is a normal test: http://numpy.scipy.org/numpydoc/numpy-3.html
You got my hopes up for a second there, but I can do neither: Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information.
regards, Arild Næss
![](https://secure.gravatar.com/avatar/9db2458b7ef4e05c9ad963b9f60e43aa.jpg?s=120&d=mm&r=g)
Lasty .. you don't have to "guess" (too much) if numpy installed correctly. Once you're not running from the source dir (I just checked here, it completely doesn't work when I'm in the source dir also), run numpy's test suite: [you@/Users/yourhomedir] $ python In [1]: import numpy In [2]: numpy.test(1,1) You should see the tests fly by and finally get something like: ---------------------------------------------------------------------- Ran 517 tests in 0.450s OK Out[2]: <unittest.TextTestRunner object at 0x15daf10> -steve
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Den 3. des. 2006 kl. 18.23 skrev Steve Lianoglou:
It seems running from the source dir has been the main problem all along. It works fine outside (I guess). I get one error in the test Steve recommends though. But hey, 519 out of 520 ain't so bad, is it? regards, Arild Næss ====================================================================== FAIL: Ticket #112 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/numpy/core/tests/test_regression.py", line 220, in check_longfloat_repr assert(str(a)[1:9] == str(a[0])[:8]) AssertionError ---------------------------------------------------------------------- Ran 520 tests in 8.141s FAILED (failures=1) <unittest.TextTestRunner object at 0x78e090>
![](https://secure.gravatar.com/avatar/5dde29b54a3f1b76b2541d0a4a9b232c.jpg?s=120&d=mm&r=g)
Arild B. Næss wrote:
It seems running from the source dir has been the main problem all along. It works fine outside (I guess).
I'm glad you got it working.
I think that's a known error, that has to do with 64 bit G5 issues , and IIRC, it's a test error, not a real bug. Good luck! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov
![](https://secure.gravatar.com/avatar/5dde29b54a3f1b76b2541d0a4a9b232c.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
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?"
You need Xcode to build numpy (or anything else). If you can find a binary, then you should be able to just run that. One of us should get a binary for 2.5 out there soon. by the way, if you can run 2.4 instead, you'll find a lot of binaries for various packages here: http://www.pythonmac.org/packages/py24-fat/index.html -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
Note that these are instructions for installing scipy, so there is a lot there that you don't need to do just to install numpy. Notably, some of the things that you are having problems with.
You probably can't use g77 along with Python 2.5. Python 2.5 is built with gcc 4.0 but g77 never got ported to the 4.x platform. However, it's not at all necessary for numpy.
numpy does not use FFTW at all, so don't let this hold you up. If you want to troubleshoot the problem, however, look at the config.log file for more information. grep for the string "cannot create executables".
You probably tried to run a previous build or install as root. Delete the build/ directory (probably as root) and try another build as a regular user. Don't use root until you actually want to install (and then, only if you need to). -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Robert Kern <robert.kern@gmail.com>:
I did get the impression that it was kind of an overkill...
That got the installation a lot further, but it still halts with an error message, this time about failing to test the configuration. Arild Næss ========================================================================== % python setup.py build Running from numpy source directory. F2PY Version 2_3396 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] lapack_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec'] running build running config_fc running build_src building py_modules sources creating build creating build/src.macosx-10.3-fat-2.5 creating build/src.macosx-10.3-fat-2.5/numpy creating build/src.macosx-10.3-fat-2.5/numpy/distutils building extension "numpy.core.multiarray" sources creating build/src.macosx-10.3-fat-2.5/numpy/core Generating build/src.macosx-10.3-fat-2.5/numpy/core/config.h customize NAGFCompiler customize AbsoftFCompiler customize IbmFCompiler Could not locate executable g77 Could not locate executable f77 Could not locate executable gfortran Could not locate executable f95 customize GnuFCompiler customize Gnu95FCompiler customize G95FCompiler customize GnuFCompiler customize Gnu95FCompiler customize NAGFCompiler customize NAGFCompiler using config 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: '-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -Inumpy/core/src -Inumpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c' gcc: _configtest.c gcc: cannot specify -o with -c or -S and multiple compilations gcc: cannot specify -o with -c or -S and multiple compilations failure. removing: _configtest.c _configtest.o numpy/core/setup.py:50: DeprecationWarning: raising a string exception is deprecated raise "ERROR: Failed to test configuration" Traceback (most recent call last): File "setup.py", line 89, in <module> setup_package() File "setup.py", line 82, in setup_package configuration=configuration ) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/core.py", line 174, in setup return old_setup(**new_attr) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 151, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py", line 112, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 87, in run self.build_sources() File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 106, in build_sources self.build_extension_sources(ext) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 212, in build_extension_sources sources = self.generate_sources(sources, ext) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", line 270, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 50, in generate_config_h raise "ERROR: Failed to test configuration" ERROR: Failed to test configuration ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
You're using OS X 10.3.9? There is a bug in distutils on that platform. It was fixed in Python's trunk, but I'm not sure where to find it. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Robert Kern <robert.kern@gmail.com>:
No, I'm on OS X 10.4.8, so my OS version shouldn't be the problem Arild Næss ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
Python 2.5 is installed, and I have installed Apple's Developer's Tools (i.e. the package "December 2002 Mac OS X Developer Tools").
By the way, this is *really* old. Long before there were Universal binaries (which is what Python 2.5 is). I believe you will want to install Xcode 2.4.1 which was released on Tuesday. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Robert Kern <robert.kern@gmail.com>:
I was wondering about that, the instructions page on scipy.org wasn't very specific. I don't need anything else than Xcode 2.4.1, so I can remove the Dec2002 package? And do I need even to run numpy (and not scipy)? Arild Næss ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
Yes, remove the Dec2002 package and install Xcode 2.4.1. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/5dde29b54a3f1b76b2541d0a4a9b232c.jpg?s=120&d=mm&r=g)
I think it's time to get MacPython2.5 and a set up packages on PythonMac org, and build a numpy for it (and SciPy and Matplotlib too...) Bob, can you set up the page, and then we can start populating it? -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/b932b1e5a3e8299878e579f51f49b84a.jpg?s=120&d=mm&r=g)
On 11/6/06, Christopher Barker <Chris.Barker@noaa.gov> wrote:
I'll put it up when there's something to put there. Doesn't make sense to have an empty page. -bob ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/9db2458b7ef4e05c9ad963b9f60e43aa.jpg?s=120&d=mm&r=g)
Hi,
And do I need even to run numpy (and not scipy)?
I'm not sure what you mean with you last question here, but just in case it's not clear: If you want to use scipy, you need to install numpy. You do *not* have to install scipy if all you need is numpy. -steve ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Siterer Steve Lianoglou <lists.steve@arachnedesign.net>:
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: File "numpy/core/setup.py", line 50, in generate_config_h raise "ERROR: Failed to test configuration" ERROR: Failed to test configuration Arild ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/9db2458b7ef4e05c9ad963b9f60e43aa.jpg?s=120&d=mm&r=g)
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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Den 5. nov. 2006 kl. 20.26 skrev Steve Lianoglou:
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.
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
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux:
Hm, this doesn't work for you either? It says on this page that "import Numeric" is a normal test: http://numpy.scipy.org/numpydoc/numpy-3.html
You got my hopes up for a second there, but I can do neither: Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information.
regards, Arild Næss
![](https://secure.gravatar.com/avatar/9db2458b7ef4e05c9ad963b9f60e43aa.jpg?s=120&d=mm&r=g)
Lasty .. you don't have to "guess" (too much) if numpy installed correctly. Once you're not running from the source dir (I just checked here, it completely doesn't work when I'm in the source dir also), run numpy's test suite: [you@/Users/yourhomedir] $ python In [1]: import numpy In [2]: numpy.test(1,1) You should see the tests fly by and finally get something like: ---------------------------------------------------------------------- Ran 517 tests in 0.450s OK Out[2]: <unittest.TextTestRunner object at 0x15daf10> -steve
![](https://secure.gravatar.com/avatar/03d2bed080a40b8866db62d3ee616f7e.jpg?s=120&d=mm&r=g)
Den 3. des. 2006 kl. 18.23 skrev Steve Lianoglou:
It seems running from the source dir has been the main problem all along. It works fine outside (I guess). I get one error in the test Steve recommends though. But hey, 519 out of 520 ain't so bad, is it? regards, Arild Næss ====================================================================== FAIL: Ticket #112 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/numpy/core/tests/test_regression.py", line 220, in check_longfloat_repr assert(str(a)[1:9] == str(a[0])[:8]) AssertionError ---------------------------------------------------------------------- Ran 520 tests in 8.141s FAILED (failures=1) <unittest.TextTestRunner object at 0x78e090>
![](https://secure.gravatar.com/avatar/5dde29b54a3f1b76b2541d0a4a9b232c.jpg?s=120&d=mm&r=g)
Arild B. Næss wrote:
It seems running from the source dir has been the main problem all along. It works fine outside (I guess).
I'm glad you got it working.
I think that's a known error, that has to do with 64 bit G5 issues , and IIRC, it's a test error, not a real bug. Good luck! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov
![](https://secure.gravatar.com/avatar/5dde29b54a3f1b76b2541d0a4a9b232c.jpg?s=120&d=mm&r=g)
arildna@stud.ntnu.no wrote:
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?"
You need Xcode to build numpy (or anything else). If you can find a binary, then you should be able to just run that. One of us should get a binary for 2.5 out there soon. by the way, if you can run 2.4 instead, you'll find a lot of binaries for various packages here: http://www.pythonmac.org/packages/py24-fat/index.html -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
participants (9)
-
Arild B. Næss
-
arildna@stud.ntnu.no
-
Bob Ippolito
-
Christopher Barker
-
Erin Sheldon
-
Gael Varoquaux
-
Robert Kern
-
Steve Lianoglou
-
Travis Oliphant