[GRASS-dev] Re: ctypes problem with Vect_open_old

Martin Landa landa.martin at gmail.com
Tue Jan 4 12:22:34 EST 2011


2011/1/4 Martin Landa <landa.martin at gmail.com>:
>> GRASS 6.5 r44853
>> ~AMD64 2.6.36
>> Python 2.6.6 [GCC 4.4.4]
>
> right, it seems to be grass7-related issue.

btw, ctypes doesn't work at all in grass65.

Traceback (most recent call last):
  File "/home/martin/smetiste/test3.py", line 2, in <module>
    from grass.lib.vector import *
  File "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/python/grass/lib/__init__.py",
line 4, in <module>
    import proj
  File "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/python/grass/lib/proj.py",
line 28, in <module>
    _libs["gdal"] = load_library("gdal")
  File "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/python/grass/lib/ctypes_loader.py",
line 57, in load_library
    raise ImportError,"%s not found." % libname
ImportError: gdal not found.

Ctypes also doesn't work on Windows, new reason to backport build
system from grass7 to grass65.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list