[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] bug on gen_win.py with sqlite version number

From: <lalvarez_at_infomed.sld.cu>
Date: Wed, 27 May 2009 13:19:13 -0400

Hy there

while genereting MSVC 2008 projects with the last SQLite source I've recived this error

C:\Subversion\trunk>gen-make.py -t vcproj --vsnet-version=2008
BDB not found, BDB fs will not be built
Generating for VS.NET 2008
Could not detect Ruby version.
  Ruby bindings will be linked with msvcrt-ruby18.lib
Found installed perl version number.
  Perl bindings will be linked with perl510.lib
Could not find installed SWIG, assuming version 1.3.25
Traceback (most recent call last):
  File "C:\Subversion\trunk\gen-make.py", line 287, in <module>
    main(conf, gentype, skip_depends=skip, other_options=rest.list)
  File "C:\Subversion\trunk\gen-make.py", line 40, in main
    generator = gen_module.Generator(fname, verfname, other_options)
  File "build\generator\gen_vcnet_vcproj.py", line 18, in __init__
  File "build\generator\gen_win.py", line 224, in __init__
  File "build\generator\gen_win.py", line 1399, in _find_sqlite
    version = tuple(map(int, vermatch.groups()))
AttributeError: 'NoneType' object has no attribute 'groups'

the reason is that this line in the sqlite.c file of the SQLite source code


the version has 4 numbers instead of 3,

the problem is that the script craches becouse it can find the version number of SQLite

the regular expresion I've change in the patch was looking for 3 numbers only within the

I asume that previous versions of sqlite come with 3 numbers so I made the regular
expresion to find both 3 and 4 version numbers.

sorry for then application/octet-stream I was unable to changed

Infomed - Red de Salud de Cuba

    Red Telematica de Salud - Cuba
              CNICM - Infomed


Received on 2009-05-28 07:32:45 CEST

This is an archived mail posted to the Subversion Dev mailing list.