[GRASS-dev] [GRASS GIS] #2539: v.in.ogr: error importing shapefiles: ValueError : too many values to unpack

GRASS GIS trac at osgeo.org
Fri Jan 9 05:12:52 PST 2015

#2539: v.in.ogr: error importing shapefiles: ValueError  :  too many values to
 Reporter:  richardc                 |       Owner:  grass-dev@…              
     Type:  defect                   |      Status:  new                      
 Priority:  critical                 |   Milestone:  7.0.0                    
Component:  Vector                   |     Version:  svn-releasebranch70      
 Keywords:  v.in.ogr  vector import  |    Platform:  Linux                    
      Cpu:  x86-32                   |  
 Probably related to https://trac.osgeo.org/grass/ticket/2537

 I'm getting the following error on attempting to import a shape file,
 without success, with v.in.ogr.

 Layer Manager > File > Import vector data > Common import formats
 [v.in.ogr] Browse to select file

 From the command console:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-
 line 140, in OnChanged

   File "/home/rcooper/grass70/grass-7.0.0svn/gui/wxpython/gu
 i_core/gselect.py", line 1920, in OnUpdate

   File "/home/rcooper/grass70/grass-7.0.0svn/gui/wxpython/gu
 i_core/gselect.py", line 1945, in _reloadLayers

 layerName, featureType, projection = map(lambda x:
 x.strip(), line.split(','))
 too many values to unpack

 And after clicking Import, I receive the following popup message:
 No layers selected. Operation canceled

 The above relates to 7.0.0svn:
 System Info
 GRASS version: 7.0.0svn
 GRASS SVN Revision: 63929
 Build Date: 2015-01-02
 Build Platform: i686-pc-linux-gnu
 GDAL/OGR: 1.11.1
 PROJ.4: 4.9.0
 GEOS: 3.4.2
 SQLite: 3.7.9
 Python: 2.7.3
 Platform: Linux-3.2.0-31-generic-pae-i686-with-LinuxMint-13-maya

 I've tried with a couple of shapefiles.

Ticket URL: <https://trac.osgeo.org/grass/ticket/2539>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list