Opened 13 years ago

Closed 13 years ago

#3668 closed bug (worksforme)

GDALTools: DEM throws an error

Reported by: pcav Owned by: brushtyler
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: GDALTools Version:
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

When activating the Raster>DEM menu, I immediately get an error:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/GdalTools.py", line 322, in doDEM
    d = DEM( self.iface )
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doDEM.py", line 47, in __init__
    (self.colorAlphaCheck, SIGNAL("stateChanged(int)"))
  File "/usr/share/qgis/python/plugins/GdalTools/tools/widgetPluginBase.py", line 108, in setParamsStatus
    self.setParamsStatus(wdgts_sgnls_chk_ver)
  File "/usr/share/qgis/python/plugins/GdalTools/tools/widgetPluginBase.py", line 148, in setParamsStatus
    gdalVer = Utils.GdalConfig.version()
  File "/usr/share/qgis/python/plugins/GdalTools/tools/GdalTools_utils.py", line 443, in version
    return Version(gdal.VersionInfo("RELEASE_NAME"))
RuntimeError: Invalid index : -1
Versione Python:
2.6.6 (r266:84292, Dec 26 2010, 22:48:11) 
[GCC 4.4.5]


Versione di QGIS:
1.7.0-Wroclaw Wroclaw, 15577M

This with gdal 1.7.3:

>>> from osgeo import gdal
>>> print gdal.VersionInfo("RELEASE_NAME")
1.7.3

Change History (3)

comment:1 by brushtyler, 13 years ago

Does DEM tool only throw this error? Could you check the gdal version from GdalTools about dialog?

comment:2 by pcav, 13 years ago

Yes, only DEM. The GDAL version reported in the About is the same as above (1.7.3). Thanks.

comment:3 by pcav, 13 years ago

Resolution: worksforme
Status: newclosed

I do not understand why, but now it works.

Note: See TracTickets for help on using tickets.