[geos-devel] python bindings in trunk

Michael Toews mwtoews at sfu.ca
Thu May 28 21:14:38 EDT 2009


Hi,

I've compiled geos from svn/trunk r2533 to (hopefully) use some new features ported from JTS 1.9 last month. I am using an Ubuntu 8.04 LTS server, which already has libgeos-c1 and libgeos2c2a from apt (I'm not sure if this matters or not).

I compiled r2533 using "./configure --enable-python", and the report said that both swig and python is enabled.

After "make"/"make install", I tried going into Python:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import geos
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.5/site-packages/geos/geos.py", line 6, in <module>
    import _geos
ImportError: /usr/local/lib/python2.5/site-packages/geos/_geos.so: undefined symbol: GEOSWKTReader_create


Any idea why? Thanks in advance.

-Mike


More information about the geos-devel mailing list