Opened 12 years ago

Closed 12 years ago

#1538 closed defect (fixed)

wxGUI: Common raster formats importer python error for single file

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 6.4.2
Component: wxGUI Version: 6.4.2 RCs
Keywords: Cc: martinl
CPU: x86-64 Platform: Linux


When importing with File -> Import -> Common raster formats -> File (directory works fine) -> /home/neteler/data/satellite/landsat_etna/srtm_etna_90m_UTM33.tif

I get this error

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-
line 140, in OnChanged

  File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/", line 1439, in

  File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/", line 1457, in

grassName = utils.GetValidLayerName(baseName.split('.',
  File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/", line 188, in

if not (retName[0] >= 'A' and retName[0] <= 'Z') and \
string index out of range
(Mon Jan 16 15:41:44 2012)                                              input=/home/neteler/data/satellite/landsat_etna/srtm_etna_90m_UTM33.tif output=srtm_etna_90m_UTM33
Projection of input dataset and current location appear to match complete. Raster map <srtm_etna_90m_UTM33> created.
(Mon Jan 16 15:41:45 2012) Command finished (0 sec)                             

The dialog crashes but the map is imported.

Change History (2)

comment:1 by martinl, 12 years ago

Cc: martinl added

Testing 6.4.2svn I am unable to reproduce this error.

comment:2 by neteler, 12 years ago

Resolution: fixed
Status: newclosed

Works in current 6.4.svn version again. Closing.

Note: See TracTickets for help on using tickets.