Invalid Version Number (Distutils from Cygwin)

newbie73 luis.cota at avmltd.com
Sun Jun 8 02:34:21 CEST 2008


OS: Vista
Python 2.5.2.2 (ActiveState Software Installation)
Running latest Cygwin release

The error generated is pasted below - please help.

- Luis

***************************************

I'm attempting to build a project (FANN libraries) using cygwin (to avoid
installing MSVC 2003) and am receiving this error:

Traceback (most recent call last):
  File "setup.py", line 46, in <module>
    define_macros=[("SWIG_COMPILE",None)]
  File "O:\bin\Python25\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "O:\bin\Python25\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "O:\bin\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "O:\bin\Python25\lib\distutils\command\build.py", line 112, in run
    self.run_command(cmd_name)
  File "O:\bin\Python25\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "O:\bin\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "o:\bin\Python25\lib\distutils\command\build_ext.py", line 273, in
run
    force=self.force)
  File "o:\bin\Python25\lib\distutils\ccompiler.py", line 1175, in
new_compiler
    return klass (None, dry_run, force)
  File "o:\bin\Python25\lib\distutils\cygwinccompiler.py", line 292, in
__init__

    CygwinCCompiler.__init__ (self, verbose, dry_run, force)
  File "o:\bin\Python25\lib\distutils\cygwinccompiler.py", line 84, in
__init__
    get_versions()
  File "o:\bin\Python25\lib\distutils\cygwinccompiler.py", line 424, in
get_vers
ions
    ld_version = StrictVersion(result.group(1))
  File "O:\bin\Python25\lib\distutils\version.py", line 40, in __init__
    self.parse(vstring)
  File "O:\bin\Python25\lib\distutils\version.py", line 107, in parse
    raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '2.18.50.20080523'
-- 
View this message in context: http://www.nabble.com/Invalid-Version-Number-%28Distutils-from-Cygwin%29-tp17714617p17714617.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list