[OSGeo-Discuss] Problem with Geos-3.2.2, Python & Swig

Mike Toews mwtoews at gmail.com
Tue Sep 18 12:13:08 PDT 2012


Hi Thomas,

Since GEOS 3.0, the Python bindings are unsupported, but the
`--enable-python` option is still exposed in case a new developer
wants to step in and support it. Try removing this option.

However, the good news is that you can use Shapely to do the same
work, as it uses the GEOS C API.

Probably the best list for GEOS questions is geos-devel
http://lists.osgeo.org/listinfo/geos-devel

-Mike

On 19 September 2012 00:57, SIEFFERT Thomas <thomas.sieffert at c-s.fr> wrote:
> Hi everyone,
>
> I don't know if it's the right place but still, I have a little problem
> while the compilation process of geos (v3.2.2). Here is the error :
>
> Traceback (most recent call last):
>   File "/freeware/python-2.5.1/lib/python2.5/runpy.py", line 87, in
> run_module
>     raise ImportError("No module named " + mod_name)
> ImportError: No module named odern
> make[2]: [geos_wrap.cxx] Erreur 255 (ignorée)
> Traceback (most recent call last):
>   File "/freeware/python-2.5.1/lib/python2.5/runpy.py", line 87, in
> run_module
>     raise ImportError("No module named " + mod_name)
> ImportError: No module named odern
> make[4]: [geos_wrap.cxx] Erreur 255 (ignorée)
> Dans le fichier inclus à partir de geos_wrap.cxx:135:
> /freeware/src/Python-2.5.1/Include/Python.h:8:22: erreur: pyconfig.h : Aucun
> fichier ou répertoire de ce type
> Dans le fichier inclus à partir de
> /freeware/src/Python-2.5.1/Include/Python.h:57,
>           à partir de geos_wrap.cxx:135:
> /freeware/src/Python-2.5.1/Include/pyport.h:734:2: erreur: #error "LONG_BIT
> definition appears wrong for platform (bad gcc/glibc config?)."
> /freeware/src/Python-2.5.1/Include/pyport.h:550: erreur: declaration of
> ?double hypot(double, double)? throws different exceptions
> /usr/include/bits/mathcalls.h:163: erreur: from previous declaration ?double
> hypot(double, double) throw ()?
> geos_wrap.cxx: In function ?int SWIG_CanCastAsInteger(double*, double,
> double)?:
> geos_wrap.cxx:2786: erreur: ?errno? was not declared in this scope
> geos_wrap.cxx:2786: erreur: ?EDOM? was not declared in this scope
> geos_wrap.cxx:2786: erreur: ?ERANGE? was not declared in this scope
> geos_wrap.cxx: In function ?PyObject* _wrap_geomFromWKB(PyObject*,
> PyObject*)?:
> geos_wrap.cxx:8247: attention : déréférencement du pointeur type-punned
> brisera les strictes d'aliases
> geos_wrap.cxx: In function ?PyObject* _wrap_geomFromHEX(PyObject*,
> PyObject*)?:
> geos_wrap.cxx:8367: attention : déréférencement du pointeur type-punned
> brisera les strictes d'aliases
> make[4]: *** [_geos_la-geos_wrap.lo] Erreur 1
> make[3]: *** [all-recursive] Erreur 1
> make[2]: *** [all] Erreur 2
> make[1]: *** [all-recursive] Erreur 1
> make: *** [all-recursive] Erreur 1
>
> ------
>
> Herewith the config.log file. If you need more information please let me
> know.
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> Discuss mailing list
> Discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/discuss
>



More information about the Discuss mailing list