[DebianGIS-dev] Bug#595603: python-liblas: OSError: liblas.so: cannot open shared object file: No such file or directory
David Paleino
dapal at debian.org
Sun Sep 5 17:35:07 UTC 2010
tags 595603 confirmed patch
tags 595608 confirmed patch
thanks
Hello Jakub,
On Sun, 5 Sep 2010 13:02:04 +0200, Jakub Wilk wrote:
> Package: python-liblas
> Version: 1.2.1-1
> Severity: serious
> Justification: Policy 3.5 [0]
>
> liblas cannot be imported in a clean chroot:
>
> $ python -c 'import liblas'
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/lib/pymodules/python2.6/liblas/__init__.py", line 1, in <module>
> from core import *
> File "/usr/lib/pymodules/python2.6/liblas/core.py", line 136, in <module>
> las = ctypes.CDLL(lib_name)
> File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
> self._handle = _dlopen(self._name, mode)
> OSError: liblas.so: cannot open shared object file: No such file or directory
>
> [..]
>
> [0] Well, while the bug might be fixed by adding a dependency on liblas-dev,
> there are better ways to fix it.
On Sun, 5 Sep 2010 13:12:00 +0200, Jakub Wilk wrote:
> Source: python-liblas
> Version: 1.2.1-1
> Severity: minor
>
> liblas/core.py contains the following line:
>
> free = ctypes.CDLL(find_library('libc.so.6')).free
>
> This is not how find_library() is supposed to be called (it should be:
> "find_library('c')"), and as a consequence find_library() always returns
> None here.
Thanks for your reports.
I prepared a patch that fixes both these bugs (they're both caused by a wrong
usage of find_library(), as you already found out), but unfortunately I'm not
able to commit it (and consequently to do an upload), even though I'm part of
the DebianGIS team:
$ LANG=C svn commit
svn: Commit failed (details follow):
svn: Authorization failed
[..]
I suspect this happens because the (Unix) group doesn't have write permission.
Therefore, I'm attaching the patch to this mail, hoping that frankie reads this
and acts accordingly (he's away for a couple of days).
Have a nice Sunday,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 00-fix_library_search.patch
Type: text/x-patch
Size: 755 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20100905/9e4c243b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20100905/9e4c243b/attachment-0001.pgp>
More information about the Pkg-grass-devel
mailing list