[GRASS-dev] [GRASS GIS] #2431: vector_what fails with multiple layer/cat

GRASS GIS trac at osgeo.org
Thu Nov 6 23:24:04 PST 2014


#2431: vector_what fails with multiple layer/cat
---------------------------+------------------------------------------------
 Reporter:  artegion       |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  major          |   Milestone:  7.0.0                    
Component:  Vector         |     Version:  svn-releasebranch70      
 Keywords:  query, v.what  |    Platform:  All                      
      Cpu:  Unspecified    |  
---------------------------+------------------------------------------------

Comment(by mmetz):

 Replying to [comment:5 annakrat]:
 > Replying to [comment:4 mmetz]:
 > >
 > > Not working in RHEL 6.x and derivates with python 2.6.6:
 `object_pairs_hook` is not a valid argument.
 > >
 > Thanks for catching this, should be fixed in r62645.

 Unfortunately not:

 {{{
   File "/home/metz/src/grass-7.1.svn/dist.x86_64-unknown-
 linux-gnu/etc/python/grass/script/vector.py", line 380, in
 vector_what

 result = json.loads(ret, **kwargs)
   File "/usr/lib64/python2.6/json/__init__.py", line 307, in
 loads

 return _default_decoder.decode(s)
   File "/usr/lib64/python2.6/json/decoder.py", line 319, in
 decode

 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File "/usr/lib64/python2.6/json/decoder.py", line 336, in
 raw_decode

 obj, end = self._scanner.iterscan(s, **kw).next()
   File "/usr/lib64/python2.6/json/scanner.py", line 55, in
 iterscan

 rval, next_pos = action(m, context)
   File "/usr/lib64/python2.6/json/decoder.py", line 183, in
 JSONObject

 value, end = iterscan(s, idx=end, context=context).next()
   File "/usr/lib64/python2.6/json/scanner.py", line 55, in
 iterscan

 rval, next_pos = action(m, context)
   File "/usr/lib64/python2.6/json/decoder.py", line 193, in
 JSONObject

 raise ValueError(errmsg("Expecting , delimiter", s, end -
 1))
 ValueError
 :
 Expecting , delimiter: line 1 column 27 (char 27)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2431#comment:6>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list