On Mar 17, 2010, at 3:00 AM, Huw Lynch wrote:

Hi

Bug report - is there a better place to post these?

I've temporarily turned off registration on the wiki while I figure out what to do about spammers, but I'll gladly set you up with a login.


Shapely has some issues if when not running on linux with libc.so.6 because libc.so.6 is hard-coded into shapely/geos/__init__.py and not all platforms use v6. Solaris for example uses libc.so.1

can replace this..

free = CDLL('libc.so.6').free

with this which is more portable...

import platform
libc = platform.libc_ver()
free = CDLL(libc[0]+'.so.'+libc[1]).free


Cheers

I tested this on my Linux machine and it doesn't yield the 'libc.so.6' that we need:

>>> free = CDLL('%s.so.%s' % platform.libc_ver()).free
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/ctypes-1.0.2-py2.4-linux- i686.egg/ctypes/__init__.py", line 340, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: glibc.so.2.3: cannot open shared object file: No such file or directory

I'm happy to add a new solaris platform section to geos.py. Will you specify the platform string and double-check that libc_ver() really returns ('libc', '1') in your situation?

--
Sean

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to