Package: python-shapely Version: 1.2.14-1 Severity: important kdienes@romulus:~$ python Python 2.7.6 (default, Dec 6 2013, 20:05:37) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import shapely >>> import shapely.geos Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/shapely/geos.py", line 102, in <module> geos_capi_version = geos_c_version = _geos_c_version() File "/usr/lib/python2.7/dist-packages/shapely/geos.py", line 100, in _geos_c_version return tuple(int(n) for n in v.split('.')) File "/usr/lib/python2.7/dist-packages/shapely/geos.py", line 100, in <genexpr> return tuple(int(n) for n in v.split('.')) ValueError: invalid literal for int() with base 10: '2 r3921'
------ This can be traced to _geos_c_version in geos.py. Changing it to this: # For example: 3.4.2-CAPI-1.8.2 r3921 _geos_c_version_re = re.compile ('[^- ]+-[^- ]+-([0-9]x[.0-9]+[0-9])+( r[0-9]+)?') def _geos_c_version(): func = _lgeos.GEOSversion func.argtypes = [] func.restype = c_char_p s = func() m = _geos_c_version_re.match(s) if not m: raise ValueError(s) print m.group(1) return tuple(int(n) for n in m.group (1).split('.')) fixed the problem for me. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.11-2-686-pae (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org