[SciPy-dev] [mailinglist] Re: NNLS

David Cournapeau david@ar.media.kyoto-u.ac...
Fri Jul 25 04:33:05 CDT 2008


Uwe Schmitt wrote:
> And on stderr:
>
>     rmbadname1: Replacing "index" with "index_bn".
>     rmbadname1: Replacing "index" with "index_bn".
>     Traceback (most recent call last):
>       File "f2py.py", line 26, in <module>
>         main()
>       File
>     "c:\Python25\lib\site-packages\numpy-1.0.4.0003-py2.5-win32.egg\numpy\f2py\f2py2e.py",
>     line 558, in main
>         run_compile()
>       File
>     "c:\Python25\lib\site-packages\numpy-1.0.4.0003-py2.5-win32.egg\numpy\f2py\f2py2e.py",
>     line 545, in run_compile
>         setup(ext_modules = [ext])
>       File
>     "c:\Python25\lib\site-packages\numpy-1.0.4.0003-py2.5-win32.egg\numpy\distutils\core.py",
>     line 176, in setup
>         return old_setup(**new_attr)
>       File "C:\Python25\lib\distutils\core.py", line 151, in setup
>         dist.run_commands()
>       File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
>         self.run_command(cmd)
>       File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
>         cmd_obj.run()
>       File "C:\Python25\lib\distutils\command\build.py", line 112, in run
>         self.run_command(cmd_name)
>       File "C:\Python25\lib\distutils\cmd.py", line 333, in run_command
>         self.distribution.run_command(command)
>       File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
>         cmd_obj.run()
>       File
>     "c:\Python25\lib\site-packages\numpy-1.0.4.0003-py2.5-win32.egg\numpy\distutils\command\build_ext.py",
>     line 78, in run
>         force=self.force)
>       File
>     "c:\Python25\lib\site-packages\numpy-1.0.4.0003-py2.5-win32.egg\numpy\distutils\ccompiler.py",
>     line 366, in new_compiler
>         compiler = klass(None, dry_run, force)
>       File
>     "c:\Python25\lib\site-packages\numpy-1.0.4.0003-py2.5-win32.egg\numpy\distutils\mingw32ccompiler.py",
>     line 46, in __init__
>         verbose,dry_run, force)
>       File "c:\Python25\lib\distutils\cygwinccompiler.py", line 84, in
>     __init__
>         get_versions()
>       File "c:\Python25\lib\distutils\cygwinccompiler.py", line 424,
>     in get_versions
>         ld_version = StrictVersion(result.group(1))
>       File "C:\Python25\lib\distutils\version.py", line 40, in __init__
>         self.parse(vstring)
>       File "C:\Python25\lib\distutils\version.py", line 107, in parse
>         raise ValueError, "invalid version number '%s'" % vstring
>     ValueError: invalid version number '2.18.50.20080625'
>

That's a problem of distutils not dealing with some special releases
(e.g. 2.18.50 for binutils is OK). I don't know if there is a fix
outside patching directly the sources (to remove this version checking
which does not make any sense to me ?).

It may worth being handled by use because with recent mingw (specially
with 4.* releases of gcc), those release numbers are the ones present in
the recent "releases".

cheers,

David


More information about the Scipy-dev mailing list