[Numpy-discussion] Error building numpy from svn

John Carter jnc at ecs.soton.ac.uk
Mon Jul 3 10:16:53 CDT 2006


Hi,

I'm getting errors when I try and build numpy from the svn.

I've followed the instructions on Installing Sci/Py/Windows at
http://www.scipy.org/Installing_SciPy/Windows?highlight=%28%28----%28-%2A%29%28%5Cr%29%3F%5Cn%29%28.%2A%29CategoryInstallation%5Cb%29

I've downloaded, built and tested Atlas, Lapack, etc

My computer is set up as follows:

MinGW 3.4.2
Cygwin 3.4.4 (used for Atlas and Lapack)
Win XP SP2

I've tried building using Cygwin instead MinGW with similar results. 
(not using cygwin python)

I also have VC++ 6 and VC++ Express installed, but neither is on the 
path when I'm attempting to build numpy.

I normally have no problems building my own python extensions using 
numarray, numpy or PIL. I use pyrex or home rolled code. These all 
work with 2.3 and 2.4.

I'd be grateful of any pointers as to what might be wrong,

Thanks in advance

John
===================================================================================
Using Python 2.3

D:.\numpy> setup.py config --compiler=mingwg2 build 
--compiler=mingw32 bdist_wininst

......

compile options: '-DNO_ATLAS_INFO=2 
-Id:\work\Programming\numerical\numpy\numpy\core\include 
-Ibuild\src.win32-2.3\nump
\core -Id:\work\Programming\numerical\numpy\numpy\core\src 
-Id:\work\Programming\numerical\numpy\numpy\core\include -IC
\PYTHON23\include -IC:\PYTHON23\PC -c'
C:\MINGW\BIN\g77.exe -shared 
build\temp.win32-2.3\Release\work\programming\numerical\numpy\numpy\linalg\lapack_litemodu
e.o -Ld:\work\Programming\numerical\libs 
-LC:/MINGW/BIN/../lib/gcc/mingw32/3.4.2 -LC:\PYTHON23\libs -LC:\PYTHON23\PCBui
d -llapack -llapack -lf77blas -lcblas -latlas -lpython23 -lgcc -lg2c 
-o build\lib.win32-2.3\numpy\linalg\lapack_lite.py

C:/MINGW/BIN/../lib/gcc/mingw32/3.4.2/libgcc.a(__main.o)(.text+0x4f): 
undefined reference to `__EH_FRAME_BEGIN__'
C:/MINGW/BIN/../lib/gcc/mingw32/3.4.2/libgcc.a(__main.o)(.text+0x73): 
undefined reference to `__EH_FRAME_BEGIN__'
collect2: ld returned 1 exit status
=========================================================================================

Using Python 2.4


D:.\numpy> setup.py config --compiler=mingwg2 build 
--compiler=mingw32 bdist_wininst
Running from numpy source directory.
No module named __svn_version__
F2PY Version 2_2727
blas_opt_info:
blas_mkl_info:
   libraries mkl,vml,guide not find in C:\PYTHON24\lib
   libraries mkl,vml,guide not find in C:\
   libraries mkl,vml,guide not find in C:\PYTHON24\libs
   NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
   FOUND:
     libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
     library_dirs = ['d:\\work\\Programming\\numerical\\libs']
     language = c

No module named msvccompiler in numpy.distutils, trying from distutils..
Traceback (most recent call last):
   File "D:\work\Programming\numerical\numpy\setup.py", line 84, in ?
     setup_package()
   File "D:\work\Programming\numerical\numpy\setup.py", line 77, in 
setup_package
     configuration=configuration )
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\core.py", line 
144, in setup
     config = configuration()
   File "D:\work\Programming\numerical\numpy\setup.py", line 43, in 
configuration
     config.add_subpackage('numpy')
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\misc_util.py", 
line 740, in add_subpackage
     caller_level = 2)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\misc_util.py", 
line 723, in get_subpackage
     caller_level = caller_level + 1)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\misc_util.py", 
line 670, in _get_configuration_from_setup_py

     config = setup_module.configuration(*args)
   File ".\numpy\setup.py", line 9, in configuration
     config.add_subpackage('core')
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\misc_util.py", 
line 740, in add_subpackage
     caller_level = 2)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\misc_util.py", 
line 723, in get_subpackage
     caller_level = caller_level + 1)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\misc_util.py", 
line 670, in _get_configuration_from_setup_py

     config = setup_module.configuration(*args)
   File "d:\work\Programming\numerical\numpy\numpy\core\setup.py", 
line 207, in configuration
     blas_info = get_info('blas_opt',0)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\system_info.py", 
line 256, in get_info
     return cl().get_info(notfound_action)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\system_info.py", 
line 397, in get_info
     self.calc_info()
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\system_info.py", 
line 1244, in calc_info
     atlas_version = get_atlas_version(**version_info)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\system_info.py", 
line 1085, in get_atlas_version
     library_dirs=config.get('library_dirs', []),
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\command\config.py", 
line 101, in get_output
     self._check_compiler()
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\command\config.py", 
line 34, in _check_compiler
     old_config._check_compiler(self)
   File "C:\PYTHON24\lib\distutils\command\config.py", line 107, in 
_check_compiler
     dry_run=self.dry_run, force=1)
   File 
"D:\work\Programming\numerical\numpy\numpy\distutils\ccompiler.py", 
line 333, in new_compiler
     compiler = klass(None, dry_run, force)
   File "C:\PYTHON24\lib\distutils\msvccompiler.py", line 211, in __init__
     self.__macros = MacroExpander(self.__version)
   File "C:\PYTHON24\lib\distutils\msvccompiler.py", line 112, in __init__
     self.load_macros(version)
   File "C:\PYTHON24\lib\distutils\msvccompiler.py", line 133, in load_macros
     raise DistutilsPlatformError, \
distutils.errors.DistutilsPlatformError: The .NET Framework SDK needs 
to be installed before building extensions for Pyt
hon.

D:.\numpy>


Dr. John N. Carter   jnc at ecs.soton.ac.uk
ISIS                        http://www.ecs.soton.ac.uk/~jnc/ 





More information about the Numpy-discussion mailing list