[Qgis-user] qgis 1.7.4 and libgdal

Agustin Lobo alobolistas at gmail.com
Tue Feb 28 08:02:08 PST 2012


Does qgis 1.7.4 (from binaries in ubuntugis-unstable for 10.04)
require libgdal1-1.8.0 and python-gdal 1.8.0 or can it work with
libgdal1 1.9 and python-gdal 1.9?

I keep on with the following dilemma:

1. If I install python-gdal 1.9 I get startup errors such as:
Couldn't load plugin openlayers due an error when calling its
classFactory() method

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 138, in
startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/alobo/.qgis/python/plugins/openlayers/__init__.py", line
48, in classFactory
    from openlayers_plugin import OpenlayersPlugin
  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/alobo/.qgis/python/plugins/openlayers/openlayers_plugin.py",
line 35, in
    from openlayers_ovwidget import OpenLayersOverviewWidget
  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/alobo/.qgis/python/plugins/openlayers/openlayers_ovwidget.py",
line 28, in
    import bindogr
  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/alobo/.qgis/python/plugins/openlayers/bindogr.py", line 1, in
    from osgeo import ogr, osr
  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/lib/python2.6/dist-packages/osgeo/__init__.py", line 21, in
    _gdal = swig_import_helper()
  File "/usr/lib/python2.6/dist-packages/osgeo/__init__.py", line 17,
in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: /usr/lib/python2.6/dist-packages/osgeo/_gdal.so: symbol
VSIFTruncateL, version GDAL_1.9 not defined in file libgdal.so.1 with
link time reference

2. If I use python-gdal 1.8.02, no startup problems but cannot use
gdal tools (within or outside qgis).

Agus



More information about the Qgis-user mailing list