[GRASS-dev] G65/7 ctypes compilation problem on Enterprise Linux

Markus Neteler neteler at osgeo.org
Wed Aug 18 15:40:48 EDT 2010


Hi,

since Helena mentioned a problem on enterprise Linux, I tried to compile 6.5 on
Scientific Linux, a RHEL derivate.

Indeed, I get this problem:

make[1]: Entering directory
`/home/neteler/software/grass65_release/lib/python/ctypes'
GISRC=/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/demolocation/.grassrc65
GISBASE=/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu
PATH="/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/bin:$PATH"
PYTHONPATH="" LD_LIBRARY_PATH="/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/bin:/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/lib::/home/neteler/binaries/lib/"
LC_ALL=C ./ctypesgen.py --cpp "gcc -E     -DPACKAGE=\""grasslibs"\"
-DPACKAGE=\""grasslibs"\"
-I/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/include"
-lgrass_datetime
/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/include/grass/datetime.h
/home/neteler/software/grass65_release/dist.x86_64-unknown-linux-gnu/include/grass/P_datetime.h
-o date.py
Traceback (most recent call last):
  File "./ctypesgen.py", line 36, in ?
    import ctypesgencore
  File "/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/__init__.py",
line 51, in ?
    import parser
  File "/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/__init__.py",
line 17, in ?
    from datacollectingparser import DataCollectingParser
  File "/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py",
line 10, in ?
    import ctypesparser
  File "/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/ctypesparser.py",
line 15, in ?
    from cparser import *
  File "/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/cparser.py",
line 19, in ?
    import preprocessor
  File "/home/neteler/software/grass65_release/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
line 14, in ?
    import ctypes
ImportError: No module named ctypes
make[1]: *** [date.py] Error 1
make[1]: Leaving directory
`/home/neteler/software/grass65_release/lib/python/ctypes'
make: *** [default] Error 2

I also tried on GRASS 7, same thing.

SciLin 5.2 provides python2.4.

A fix would be appreciated.

Markus


More information about the grass-dev mailing list