that happens when you install gdal-1.9 on top of gdal-1.8 without removing the 1.8 files first.
Etienne On Wed, Jul 25, 2012 at 6:39 AM, Agustin Lobo <[email protected]> wrote: > I found the reason and the fix: > I had several old (2010) libgdal* files (including libgdal.so.*) in > /usr/local/lib masking the new ones in /usr/lib > Deleting (actually moving them to another directory just in case) the > ones in /usr/local/lib > makes a clean start up of qgis. > > Agus > > 2012/7/25 Agustin Lobo <[email protected]>: >> Using qgis 1.8 on ubuntu 10.04 >> I've upgraded to python-gdal 1.9 and the GdalTools plugin and some others >> complain at qgis start-up: >> >> >> 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 164, 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 309, 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 309, 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 309, 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 309, 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.8 not defined in file libgdal.so.1 with >> link time reference >> >> Python version: >> 2.6.5 (r265:79063, Apr 16 2010, 14:15:55) >> [GCC 4.4.3] >> >> I had circumvented this issue by forcin python-gdal 1.8, but this >> version is no longer available. >> >> Any solution to this problem? >> >> Thanks >> >> Agus > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
