[gdal-dev] Issue with validate_gpkg.py

bradh at frogmouth.net bradh at frogmouth.net
Thu Nov 29 01:43:13 PST 2018


Looks like (line 59)
type.startswith('TEXT(') or type.startswith('BLOB(')

Should be 

typ.startswith('TEXT(') or typ.startswith('BLOB(')

 

(i.e. remove the two "e" characters)

 

Brad

 

From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Rahkonen
Jukka (MML)
Sent: Thursday, 29 November 2018 8:36 PM
To: 'gdal-dev at lists.osgeo.org' (gdal-dev at lists.osgeo.org)
<gdal-dev at lists.osgeo.org>
Subject: [gdal-dev] Issue with validate_gpkg.py

 

Hi,

 

I try to run validate_gpkg.py that I downloaded today from GitHub. I run it
under OSGeo4W installation on Windows, GDAL version GDAL 2.3.2, released
2018/09/21, and Python version Python 2.7.14.

 

Validation stops at this error message:

 

Traceback (most recent call last):

  File "validate_gpkg.py", line 1611, in <module>

    verbose=verbose)

  File "validate_gpkg.py", line 1578, in check

    checker.check()

  File "validate_gpkg.py", line 1555, in check

    self._check_features(c)

  File "validate_gpkg.py", line 596, in _check_features

    self._check_vector_user_table(c, table_name)

  File "validate_gpkg.py", line 367, in _check_vector_user_table

    self._assert(_is_valid_data_type(typ), 5,

  File "validate_gpkg.py", line 59, in _is_valid_data_type

    type.startswith('TEXT(') or type.startswith('BLOB(')

AttributeError: type object 'type' has no attribute 'startswith'

 

Is there something that a user can do for making the script to run?

 

-Jukka Rahkonen-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181129/5a0b074a/attachment-0001.html>


More information about the gdal-dev mailing list