Alright, so I tried a fresh install of Snow Leopard to see if that
could help me in my efforts to get numpy loading with Maya 2k9. So far
it has not changed anything, I am still having issues building the
package. I have tried several versions, and all have issues, often
different. Numpy will build against OS X's python, but once I try
building with mayapy, it fails.
I thought it had something to do with my compiler settings, but if it
will compile against the system python, then I am assuming that is not
the issue.
Any insight would be awesome. Thanks.
Here is the full output of trying to build numpy 1.2.1 and the latest
SVN build with mayapy:
Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2_5865
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_cc
unifing config_cc, config, build_clib, build_ext, build commands --
compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --
fcompiler options
running build_src
building py_modules sources
building extension "numpy.core.multiarray" sources
Generating build/src.macosx-10.3-fat-2.5/numpy/core/include/numpy/
config.h
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler 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/Applications/Autodesk/maya2009/Maya.app/Contents/
Frameworks/Python.framework/Versions/Current/include/python2.5 -Inumpy/
core/src -Inumpy/core/include -I/Applications/Autodesk/maya2009/
Maya.app/Contents/Frameworks/Python.framework/Versions/Current/include/
python2.5 -c'
gcc: _configtest.c
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//ccy67chs.out
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//ccy67chs.out
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "setup.py", line 96, in <module>
setup_package()
File "setup.py", line 89, in setup_package
configuration=configuration )
File "/Users/rabidPraxis/Downloads/numpy-1.2.0/numpy/distutils/
core.py", line 184, in setup
return old_setup(**new_attr)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/Users/rabidPraxis/Downloads/numpy-1.2.0/numpy/distutils/
command/build.py", line 37, in run
old_build.run(self)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/command/
build.py", line 112, in run
self.run_command(cmd_name)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/Users/rabidPraxis/Downloads/numpy-1.2.0/numpy/distutils/
command/build_src.py", line 130, in run
self.build_sources()
File "/Users/rabidPraxis/Downloads/numpy-1.2.0/numpy/distutils/
command/build_src.py", line 147, in build_sources
self.build_extension_sources(ext)
File "/Users/rabidPraxis/Downloads/numpy-1.2.0/numpy/distutils/
command/build_src.py", line 250, in build_extension_sources
sources = self.generate_sources(sources, ext)
File "/Users/rabidPraxis/Downloads/numpy-1.2.0/numpy/distutils/
command/build_src.py", line 307, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 87, in generate_config_h
raise SystemError,"Failed to test configuration. "\
SystemError: Failed to test configuration. See previous error messages
for more information.
and here is the output when I try to build the latest SVN build of
numpy:
Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2_7597
numpy/core/setup_common.py:82: MismatchCAPIWarning: API mismatch
detected, the C API version numbers have to be updated. Current C api
version is 3, with checksum 59750b518272c8987f02d66445afd3f1, but
recorded checksum for C API version 3 in codegen_dir/cversions.txt is
bf22c0d05b31625d2a7015988d61ce5a. If functions were added in the C
API, you have to update C_API_VERSION in numpy/core/setup_common.py.
MismatchCAPIWarning)
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_cc
unifing config_cc, config, build_clib, build_ext, build commands --
compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --
fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
/Users/rabidPraxis/Downloads/numpy/numpy/distutils/fcompiler/gnu.py:
131: UserWarning: Env. variable MACOSX_DEPLOYMENT_TARGET set to 10.3
warnings.warn(s)
customize Gnu95FCompiler
customize Gnu95FCompiler 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: '-Inumpy/core/src -Inumpy/core -Inumpy/core/src/
npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/
core/include -I/Applications/Autodesk/maya2009/Maya.app/Contents/
Frameworks/Python.framework/Versions/Current/include/python2.5 -c'
gcc: _configtest.c
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//ccVIwoi3.out
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//ccVIwoi3.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 -Inumpy/core/src/
npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/
core/include -I/Applications/Autodesk/maya2009/Maya.app/Contents/
Frameworks/Python.framework/Versions/Current/include/python2.5 -c'
gcc: _configtest.c
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//cclArN9U.out
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//cclArN9U.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 -Inumpy/core/src/
npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/
core/include -I/Applications/Autodesk/maya2009/Maya.app/Contents/
Frameworks/Python.framework/Versions/Current/include/python2.5 -c'
gcc: _configtest.c
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//ccWbXkHi.out
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: /var/folders/Jb/Jb-
MypuxHAqbKqJBZ2Nitk+++TI/-Tmp-//ccWbXkHi.out
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "setup.py", line 187, in <module>
setup_package()
File "setup.py", line 180, in setup_package
configuration=configuration )
File "/Users/rabidPraxis/Downloads/numpy/numpy/distutils/core.py",
line 186, in setup
return old_setup(**new_attr)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/Users/rabidPraxis/Downloads/numpy/numpy/distutils/command/
build.py", line 37, in run
old_build.run(self)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/command/
build.py", line 112, in run
self.run_command(cmd_name)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/Applications/Autodesk/maya2009/Maya.app/Contents/Frameworks/
Python.framework/Versions/Current/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/Users/rabidPraxis/Downloads/numpy/numpy/distutils/command/
build_src.py", line 152, in run
self.build_sources()
File "/Users/rabidPraxis/Downloads/numpy/numpy/distutils/command/
build_src.py", line 163, in build_sources
self.build_library_sources(*libname_info)
File "/Users/rabidPraxis/Downloads/numpy/numpy/distutils/command/
build_src.py", line 298, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/Users/rabidPraxis/Downloads/numpy/numpy/distutils/command/
build_src.py", line 385, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 584, in get_mathlib_info
mlibs = check_mathlib(config_cmd)
File "numpy/core/setup.py", line 283, in check_mathlib
raise EnvironmentError("math library missing; rerun "
EnvironmentError: math library missing; rerun setup.py after setting
the MATHLIB env variable
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---