[GRASS-dev] [GRASS GIS] #3331: ctypes: ValueError: invalid literal for int() with base 8: '08420217248550443400745280086994171'

GRASS GIS trac at osgeo.org
Tue Jun 20 16:44:28 PDT 2017


#3331: ctypes: ValueError: invalid literal for int() with base 8:
'08420217248550443400745280086994171'
--------------------------+---------------------------------
  Reporter:  neteler      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.2
 Component:  Python       |    Version:  svn-releasebranch72
Resolution:               |   Keywords:  ctypes, python
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by glynn):

 Replying to [comment:21 brunofriedmann]:
 > Excuse me, but how should apply the last 2 patches ?
 Either patch should work on its own. The first (floats1.diff) just avoids
 the exception, by preventing strings of digits which contain 8 or 9 from
 being parsed as octal. The second (floats2.diff) expands the regexp for
 floating-point literals so that the additional forms are parsed correctly.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3331#comment:33>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list