[DebianGIS-dev] Bug#473912: [python-gdal] another layer __getitem__ bug
Stefano Costa
steko at iosa.it
Wed Apr 2 09:38:08 UTC 2008
Package: python-gdal
Version: 1.5.1-1+b1
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
I thought this problem was solved in the 1.5.1 bugfix release (see
http://trac.osgeo.org/gdal/ticket/2187 )
steko at cycnus:~/code/murature$ python junction.py
Traceback (most recent call last):
File "junction.py", line 50, in ?
get_junction(la[i])
File "/usr/lib/python2.4/site-packages/osgeo/ogr.py", line 1214, in __getitem__
if isinstance(value, types.SliceType):
NameError: global name 'types' is not defined
this can be solved trivially by adding an "import types" at line 1214,
but probably there are better ways to do it. I don't know how this is
related to Python versions (2.4 vs 2.5) because types is a standard
module in 2.5.
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.24-1-686
Debian Release: lenny/sid
500 unstable ftp.it.debian.org
500 testing www.debian-multimedia.org
500 testing security.eu.debian.org
500 testing ftp.it.debian.org
500 testing debian.gfoss.it
--- Package information. ---
Depends (Version) | Installed
==================================-+-================
libc6 (>= 2.7-1) | 2.7-10
libgcc1 (>= 1:4.1.1-21) | 1:4.3.0-2
libgdal1-1.5.0 | 1.5.1-1+b1
libstdc++6 (>= 4.1.1-21) | 4.3.0-2
python (>= 2.4) | 2.4.4-6
python (<< 2.5) | 2.4.4-6
python-central (>= 0.6) | 0.6.1
python-numpy | 1:1.0.4-7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url : http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20080402/9867ecd4/attachment.pgp
More information about the Pkg-grass-devel
mailing list