Package: swig Version: 1.3.38-1 Severity: grave Python 2.6.1+ (r261:67515, Mar 18 2009, 22:12:06) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from osgeo import gdal Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/osgeo/gdal.py", line 19, in <module> _gdal = swig_import_helper() File "/usr/lib/python2.6/dist-packages/osgeo/gdal.py", line 17, in swig_import_helper if fp is not None: fp.close() UnboundLocalError: local variable 'fp' referenced before assignment
This is fixed in 1.3.39. I also found Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from osgeo import gdal_array Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/osgeo/gdal_array.py", line 7, in <module> import _gdal_array ImportError: dynamic module does not define init function (init_gdal_array) where apparently PyMOD_FUNC results not properly defined and renders the module unusable. Not sure it is due to Swig, but it seems probable... -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.29-1-686 (SMP w/1 CPU core) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages swig depends on: ii libc6 2.9-12 GNU C Library: Shared libraries ii libgcc1 1:4.4.0-5 GCC support library ii libstdc++6 4.4.0-5 The GNU Standard C++ Library v3 swig recommends no packages. Versions of packages swig suggests: pn swig-doc <none> (no description available) pn swig-examples <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org