Comment 2 for bug 409269

Revision history for this message
Alexis Roche (alexis-roche) wrote : Re: [Bug 409269] [NEW] setup fails on mingw32

Hi Gaël,

> Interesting, I cannot reproduce. You are talking about the neurospin
> branch, right?

I am talking about the main branch, but I actually get the same bug
with the neurospin branch.

> Could you run 'python -m pdb setup.py config' to introspect (enter
> 'continue' at the first promp) and print the value of d, k and v when
> this fails.

I get:

(Pdb) d
*** Newest frame
(Pdb) k
'libraries'
(Pdb) v
['g2c']
(Pdb)

Here is the complete log:

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\home\AR203069\bzr\nipy\nipy>python -m pdb setup.py config
> d:\home\ar203069\bzr\nipy\nipy\setup.py(2)<module>()
-> import sys
(Pdb) continue
nipy\__init__.py:71: UserWarning: Running the tests from the install directory m
ay trigger some failures
  warnings.warn('Running the tests from the install directory may '
lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in c:\mingw\lib
  libraries mkl,vml,guide not found in c:\Libraries\lib
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in c:\mingw\lib
  libraries lapack_atlas not found in c:\mingw\lib
  libraries ptf77blas,ptcblas,atlas not found in c:\Libraries\lib
  libraries lapack_atlas not found in c:\Libraries\lib
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in c:\mingw\lib
  libraries lapack_atlas not found in c:\mingw\lib
  libraries f77blas,cblas,atlas not found in c:\Libraries\lib
  libraries lapack_atlas not found in c:\Libraries\lib
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

C:\Python25\lib\site-packages\numpy\distutils\system_info.py:1295: UserWarning:

    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
  libraries lapack not found in c:\mingw\lib
  FOUND:
    libraries = ['lapack', 'g2c']
    library_dirs = ['c:\\Libraries\\lib', 'c:\\mingw\\lib']
    language = f77

blas_info:
  libraries blas not found in c:\mingw\lib
  FOUND:
    libraries = ['blas', 'g2c']
    library_dirs = ['c:\\Libraries\\lib', 'c:\\mingw\\lib']
    language = f77

  FOUND:
    libraries = ['lapack', 'g2c', 'blas', 'g2c', 'g2c']
    library_dirs = ['c:\\Libraries\\lib', 'c:\\mingw\\lib']
    define_macros = [('NO_ATLAS_INFO', 1)]
    language = f77

Traceback (most recent call last):
  File "C:\Python25\lib\pdb.py", line 1213, in main
    pdb._runscript(mainpyfile)
  File "C:\Python25\lib\pdb.py", line 1138, in _runscript
    self.run(statement, globals=globals_, locals=locals_)
  File "C:\Python25\lib\bdb.py", line 366, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "setup.py", line 107, in <module>
    main(**extra_setuptools_args)
  File "setup.py", line 103, in main
    **extra_args)
  File "c:\Python25\Lib\site-packages\numpy\distutils\core.py", line 152, in set
up
    config = configuration()
  File "setup.py", line 22, in configuration
    config.add_subpackage('nipy', 'nipy')
  File "c:\Python25\Lib\site-packages\numpy\distutils\misc_util.py", line 890, i
n add_subpackage
    caller_level = 2)
  File "c:\Python25\Lib\site-packages\numpy\distutils\misc_util.py", line 859, i
n get_subpackage
    caller_level = caller_level + 1)
  File "c:\Python25\Lib\site-packages\numpy\distutils\misc_util.py", line 796, i
n _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "nipy\setup.py", line 61, in configuration
    nipy_info().set_info(**get_nipy_info())
  File "c:\Python25\Lib\site-packages\numpy\distutils\system_info.py", line 433,
 in set_info
    dict_append(info,**lib_info)
  File "c:\Python25\Lib\site-packages\numpy\distutils\system_info.py", line 1945
, in dict_append
    d[k].extend(v)
AttributeError: 'str' object has no attribute 'extend'
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> c:\python25\lib\site-packages\numpy\distutils\system_info.py(1945)dict_append(
)
-> d[k].extend(v)
(Pdb) d
*** Newest frame
(Pdb) k
'libraries'
(Pdb) v
['g2c']
(Pdb)

Cheers,

Alexis