AIFDR/risk_in_a_box — Issue #50: gdal_array.so: undefined symbol: _
Author: uniomni
Created: 2012-01-28 03:27:46+00:00
State: open

Can't run on my home computer
The system is Ubuntu 11.04 - 64 and the packages are as installed by our script:

ro@homedesk:~$ dpkg -l | grep gdal
ii gdal-bin 1.8.0-2~natty4 Geospatial Data Abstraction Library - Utility programs
ii libgdal1-1.8.0 1.8.0-2~natty4 Geospatial Data Abstraction Library
ii python-gdal 1.8.0-2~natty4 Python bindings to the Geospatial Data Abstraction Library
ro@homedesk:~$ dpkg -l | grep qgis
ii libqgis1.7.3 1.7.3-1~natty1 Quantum GIS - shared libraries
ii python-qgis 1.7.3-1~natty1 Python bindings to Quantum GIS
ii python-qgis-common 1.7.3-1~natty1 Python bindings to Quantum GIS - architecture-independent files
ii qgis 1.7.3-1~natty1 Geographic Information System (GIS)
ii qgis-common 1.7.3-1~natty1 Quantum GIS - architecture-independent data
ii qgis-plugin-grass 1.7.3-1~natty1 GRASS plugin for Quantum GIS
ii qgis-plugin-grass-common 1.7.3-1~natty1 GRASS plugin for Quantum GIS - architecture-independent data
ii qgis-providers 1.7.3-1~natty1 collection of data providers to Quantum GIS
ii qgis-providers-common 1.7.3-1~natty1 collection of data providers to Quantum GIS - architecture-independent files

The engine and storage tests pass individually, but running the entire suite gives errors like this:

======================================================================
ERROR: Test that we can get keyword data from a riab layer with
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ro/sandpit/risk_in_a_box/gui/test_impactcalculator.py", line 144, in test_getKeywordFromLayer
myImpactLayer, 'caption')
File "/home/ro/sandpit/risk_in_a_box/gui/impactcalculator.py", line 196, in getKeywordFromLayer
raise InvalidParameterException()
InvalidParameterException:
-------------------- >> begin captured stdout << ---------------------
Calculation error encountered:

Problem: /usr/lib/python2.7/dist-packages/osgeo/_gdal_array.so: undefined symbol: _ZNK15GDALMajorObject14GetDescriptionEv

Traceback:

File "/home/ro/sandpit/risk_in_a_box/gui/impactcalculator.py", line 455, in run
impact_fcn=self._function)
File "/home/ro/sandpit/risk_in_a_box/engine/core.py", line 52, in calculate_impact
check_data_integrity(layers)
File "/home/ro/sandpit/risk_in_a_box/engine/core.py", line 198, in check_data_integrity
data = layer.get_data()
File "/home/ro/sandpit/risk_in_a_box/storage/raster.py", line 340, in get_data
A = self.band.ReadAsArray()
File "/usr/lib/python2.7/dist-packages/osgeo/gdal.py", line 1027, in ReadAsArray
import gdalnumeric
File "/usr/lib/python2.7/dist-packages/osgeo/gdalnumeric.py", line 1, in
from gdal_array import *
File "/usr/lib/python2.7/dist-packages/osgeo/gdal_array.py", line 25, in
_gdal_array = swig_import_helper()
File "/usr/lib/python2.7/dist-packages/osgeo/gdal_array.py", line 21, in swig_import_helper
_mod = imp.load_module('_gdal_array', fp, pathname, description)

--------------------- >> end captured stdout << ----------------------