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

Helena Mitasova hmitaso at unity.ncsu.edu
Wed Aug 18 16:11:04 EDT 2010


Markus,

this is the same problem here - the problem is with python2.4 that is used as default
and that does not include ctypes so you need to make symlink in grass to make sure 
it looks for python2.6 (which I have also installed) or there may be some other solution -
You cannot remove python2.4 because it is used for system management.
I did not have time to get it fully resolved yet.

The problem should go away with the next release of RHEL which is in beta and
should use python 2.6 (I think),

Helena 


On Aug 18, 2010, at 3:40 PM, Markus Neteler wrote:

> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev



More information about the grass-dev mailing list