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

GRASS GIS trac at osgeo.org
Sat Apr 8 03:53:13 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.1
Component:  Python          |    Version:  unspecified
 Keywords:  ctypes, python  |        CPU:  Unspecified
 Platform:  Unspecified     |
----------------------------+-------------------------
 While compiling GRASS GIS 7.2.1RC1 on Fedora26, I get
 {{{
 ...
 python -t -3 -m py_compile /builddir/build/BUILD/grass-7.2.1/dist.x86_64
 -redhat-linux-gnu/etc/python/grass/lib/ctypes_preamble.py
 python -t -3 -m py_compile /builddir/build/BUILD/grass-7.2.1/dist.x86_64
 -redhat-linux-gnu/etc/python/grass/lib/ctypes_loader.py
 GISRC=/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/demolocation/.grassrc72
 GISBASE=/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-gnu
 PATH="/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/scripts:$PATH"
 PYTHONPATH="/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/etc/python:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/gui/wxpython:$PYTHONPATH"
 LD_LIBRARY_PATH="/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-
 linux-gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/scripts:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/lib:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/lib:" LC_ALL=C ./ctypesgen.py --cpp "gcc -E
 -I/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-gnu/include
 -I/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-gnu/include
 -D__GLIBC_HAVE_LONG_LONG" -lgrass_datetime.7.2.1
 /builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/include/grass/datetime.h /builddir/build/BUILD/grass-7.2.1/dist.x86_64
 -redhat-linux-gnu/include/grass/defs/datetime.h -o OBJ.x86_64-redhat-
 linux-gnu/date.py
 GISRC=/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/demolocation/.grassrc72
 GISBASE=/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-gnu
 PATH="/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/scripts:$PATH"
 PYTHONPATH="/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/etc/python:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/gui/wxpython:$PYTHONPATH"
 LD_LIBRARY_PATH="/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-
 linux-gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/bin:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/scripts:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/lib:/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/lib:" LC_ALL=C ./ctypesgen.py --cpp "gcc -E
 -I/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-gnu/include
 -I/builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-gnu/include
 -D__GLIBC_HAVE_LONG_LONG" -lgrass_gis.7.2.1
 /builddir/build/BUILD/grass-7.2.1/dist.x86_64-redhat-linux-
 gnu/include/grass/gis.h /builddir/build/BUILD/grass-7.2.1/dist.x86_64
 -redhat-linux-gnu/include/grass/defs/gis.h -o OBJ.x86_64-redhat-linux-
 gnu/gis.py
 Status: Preprocessing /tmp/tmp4SEb0S.h
 Status: gcc -E       -I/builddir/build/BUILD/grass-7.2.1/dist.x86_64
 -redhat-linux-gnu/include -I/builddir/build/BUILD/grass-7.2.1/dist.x86_64
 -redhat-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD
 "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t"
 "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1"
 /tmp/tmp4SEb0S.h
 Traceback (most recent call last):
   File "./ctypesgen.py", line 139, in <module>
     descriptions = ctypesgencore.parser.parse(options.headers, options)
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/__init__.py",
 line 22, in parse
     parser.parse()
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py",
 line 74, in parse
     ctypesparser.CtypesParser.parse(self, fname, None)
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/cparser.py",
 line 120, in parse
     self.preprocessor_parser.parse(filename)
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
 line 218, in parse
     token = self.lexer.token()
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
 line 63, in token
     result = lex.Lexer.token(self)
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/lex.py",
 line 355, in token
     newtok = func(tok)
   File
 "/builddir/build/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/pplexer.py",
 line 262, in t_ANY_int
     g1 = str(long(g1, 8))
 ValueError: invalid literal for int() with base 8:
 '08420217248550443400745280086994171'
 make[6]: *** [Makefile:102: OBJ.x86_64-redhat-linux-gnu/date.py] Error 1
 }}}

 How to fix that?

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



More information about the grass-dev mailing list