[DebianGIS-dev] Bug#595608: Bug#595608: Bug#595603: python-liblas: OSError: liblas.so: cannot open shared object file: No such file or directory

Francesco P. Lovergine frankie at debian.org
Fri Sep 10 09:37:08 UTC 2010


On Sun, Sep 05, 2010 at 07:35:07PM +0200, David Paleino wrote:
> 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
> 

I'd upload the change and ask RMs about testing migration.


-- 
Francesco P. Lovergine





More information about the Pkg-grass-devel mailing list