[GRASS-dev] [GRASS GIS] #3331: ctypes: ValueError: invalid literal for int() with base 8: '08420217248550443400745280086994171'
GRASS GIS
trac at osgeo.org
Mon Jun 5 22:40:55 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: unspecified
Resolution: | Keywords: ctypes, python
CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------
Comment (by brunofriedmann):
We (openSUSE) also see the same error.
{{{
[ 115s] make[6]: Entering directory
'/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes'
[ 115s] test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-
gnu
[ 115s] GISRC=/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/demolocation/.grassrc72
GISBASE=/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-gnu
PATH="/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/bin:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/bin:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/scripts:$PATH"
PYTHONPATH="/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/gui/wxpython:$PYTHONPATH"
LD_LIBRARY_PATH="/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/bin:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/bin:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/scripts:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/lib:/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-
linux-gnu/lib:" LC_ALL=C ./ctypesgen.py --cpp "gcc -E
-I/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-gnu/include
-I/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-gnu/include
-D__GLIBC_HAVE_LONG_LONG" -lgrass_datetime.7.2.1
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/include/grass/datetime.h
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/include/grass/defs/datetime.h -o OBJ.x86_64-pc-linux-gnu/date.py
[ 115s] Status: Preprocessing /tmp/tmpSIivMQ.h
[ 115s] Status: gcc -E
-I/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-gnu/include
-I/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-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/tmpSIivMQ.h
[ 115s] Traceback (most recent call last):
[ 115s] File "./ctypesgen.py", line 139, in <module>
[ 115s] descriptions = ctypesgencore.parser.parse(options.headers,
options)
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/__init__.py",
line 22, in parse
[ 115s] parser.parse()
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py",
line 74, in parse
[ 115s] ctypesparser.CtypesParser.parse(self, fname, None)
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/cparser.py",
line 120, in parse
[ 115s] self.preprocessor_parser.parse(filename)
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
line 218, in parse
[ 115s] token = self.lexer.token()
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
line 63, in token
[ 115s] result = lex.Lexer.token(self)
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/lex.py",
line 355, in token
[ 115s] newtok = func(tok)
[ 115s] File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/pplexer.py",
line 262, in t_ANY_int
[ 115s] g1 = str(long(g1, 8))
[ 115s] ValueError: invalid literal for int() with base 8:
'08420217248550443400745280086994171'
[ 115s] make[6]: *** [Makefile:102: OBJ.x86_64-pc-linux-gnu/date.py]
Error 1
[ 115s] make[6]: Leaving directory
'/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes'
[ 115s] make[5]: *** [Makefile:81: default] Error 2
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3331#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list