[GRASS-dev] [GRASS GIS] #3331: ctypes: ValueError: invalid literal for int() with base 8: '08420217248550443400745280086994171'
GRASS GIS
trac at osgeo.org
Tue Jun 20 04:33:34 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 brunofriedmann):
Ok entering the chroot of build and running make in lib/python/ctypes give
me the following result
{{{
abuild at qt-kt.labaroche.ioda.net:/home/abuild> ll
total 24
drwxr-xr-x 3 abuild abuild 4096 Jun 20 11:25 .
drwxr-xr-x 3 root root 4096 Jun 20 11:25 ..
-rw-r--r-- 1 root root 4353 Jun 20 11:25 .rpmmacros
-rw-r--r-- 1 root root 2672 Jun 20 11:25 .rpmrc
drwxr-xr-x 9 abuild abuild 4096 Jun 20 11:25 rpmbuild
abuild at qt-kt.labaroche.ioda.net:/home/abuild> cd rpmbuild/
BUILD/ BUILDROOT/ OTHER/ RPMS/ SOURCES/ SPECS/ SRPMS/
abuild at qt-kt.labaroche.ioda.net:/home/abuild> cd
rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/
abuild at qt-
kt.labaroche.ioda.net:/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes>
ll
total 52
drwxr-xr-x 4 abuild abuild 4096 Jun 20 11:25 .
drwxr-xr-x 11 abuild abuild 4096 Nov 29 2014 ..
-rw-r--r-- 1 abuild abuild 3390 Aug 27 2016 Makefile
drwxr-xr-x 2 abuild abuild 4096 Jun 20 11:25 OBJ.x86_64-pc-linux-gnu
-rw-r--r-- 1 abuild abuild 243 May 2 2016 __init__.py
-rwxr-xr-x 1 abuild abuild 7208 May 2 2016 ctypesgen.py
drwxr-xr-x 5 abuild abuild 4096 Jun 20 11:25 ctypesgencore
-rw-r--r-- 1 abuild abuild 225 May 2 2016 fix.sed
-rw-r--r-- 1 abuild abuild 8518 May 2 2016 loader.py
-rw-r--r-- 1 abuild abuild 2287 May 2 2016 preamble.py
abuild at qt-
kt.labaroche.ioda.net:/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes>
make
make /home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib
make[1]: Entering directory
'/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes'
make[1]: '/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib' is up to date.
make[1]: Leaving directory
'/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes'
make OBJ.x86_64-pc-linux-gnu/date.py OBJ.x86_64-pc-linux-gnu/gis.py
OBJ.x86_64-pc-linux-gnu/raster.py OBJ.x86_64-pc-linux-gnu/gmath.py
OBJ.x86_64-pc-linux-gnu/proj.py OBJ.x86_64-pc-linux-gnu/imagery.py
OBJ.x86_64-pc-linux-gnu/vector.py OBJ.x86_64-pc-linux-gnu/rtree.py
OBJ.x86_64-pc-linux-gnu/display.py OBJ.x86_64-pc-linux-gnu/stats.py
OBJ.x86_64-pc-linux-gnu/dbmi.py OBJ.x86_64-pc-linux-gnu/raster3d.py
OBJ.x86_64-pc-linux-gnu/arraystats.py OBJ.x86_64-pc-linux-gnu/cluster.py
OBJ.x86_64-pc-linux-gnu/vedit.py OBJ.x86_64-pc-linux-gnu/segment.py
OBJ.x86_64-pc-linux-gnu/rowio.py OBJ.x86_64-pc-linux-gnu/temporal.py
OBJ.x86_64-pc-linux-gnu/ogsf.py OBJ.x86_64-pc-linux-gnu/nviz.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/date.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/gis.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/raster.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/gmath.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/proj.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/imagery.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/vector.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/rtree.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/display.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/stats.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/dbmi.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/raster3d.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/arraystats.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/cluster.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/vedit.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/segment.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/rowio.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/temporal.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/ogsf.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/nviz.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/__init__.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/ctypes_preamble.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/ctypes_loader.py
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/date.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/gis.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/raster.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/gmath.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/proj.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/imagery.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/vector.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/rtree.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/display.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/stats.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/dbmi.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/raster3d.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/arraystats.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/cluster.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/vedit.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/segment.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/rowio.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/temporal.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/ogsf.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/nviz.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/__init__.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/ctypes_preamble.pyc
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/etc/python/grass/lib/ctypes_loader.pyc
make[1]: Entering directory
'/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes'
make[1]: 'OBJ.x86_64-pc-linux-gnu/date.py' is up to date.
make[1]: 'OBJ.x86_64-pc-linux-gnu/gis.py' is up to date.
make[1]: 'OBJ.x86_64-pc-linux-gnu/raster.py' is up to date.
make[1]: 'OBJ.x86_64-pc-linux-gnu/gmath.py' is up to date.
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_gproj.7.2.1 -I/usr/include/gdal
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/include/grass/gprojects.h
/home/abuild/rpmbuild/BUILD/grass-7.2.1/dist.x86_64-pc-linux-
gnu/include/grass/defs/gprojects.h -o OBJ.x86_64-pc-linux-gnu/proj.py
Status: Preprocessing /tmp/tmpU_Xy2Y.h
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 -I/usr/include/gdal "-Dinline="
"-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const"
"-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" /tmp/tmpU_Xy2Y.h
Traceback (most recent call last):
File "./ctypesgen.py", line 139, in <module>
descriptions = ctypesgencore.parser.parse(options.headers, options)
File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/__init__.py",
line 22, in parse
parser.parse()
File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py",
line 74, in parse
ctypesparser.CtypesParser.parse(self, fname, None)
File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/cparser.py",
line 120, in parse
self.preprocessor_parser.parse(filename)
File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
line 218, in parse
token = self.lexer.token()
File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
line 63, in token
result = lex.Lexer.token(self)
File
"/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes/ctypesgencore/parser/lex.py",
line 404, in token
lexpos:])
ctypesgencore.parser.lex.LexError: Scanning error. Illegal character '0'
make[1]: *** [Makefile:102: OBJ.x86_64-pc-linux-gnu/proj.py] Error 1
make[1]: Leaving directory
'/home/abuild/rpmbuild/BUILD/grass-7.2.1/lib/python/ctypes'
make: *** [Makefile:81: default] Error 2
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3331#comment:28>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list