Python fails to import liblas module

Bug #620466 reported by Ian Wusstig
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-liblas (Debian)
Fix Released
Unknown
python-liblas (Ubuntu)
Fix Released
High
Andrew Starr-Bochicchio

Bug Description

Binary package hint: python-liblas

Trying to import the liblas module ala entering import liblas in the python shell prints

   File "<stdin>", 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

and results in the module not importing in both Lucid and Maverick.

Changing line 134 of /usr/share/pyshared/liblas/core.py from
         lib_name = 'liblas.so'
to
         lib_name = 'liblas.so.1'
fixes the problem.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python-liblas 1.2.1-1
ProcVersionSignature: Ubuntu 2.6.35-15.21-generic 2.6.35.1
Uname: Linux 2.6.35-15-generic x86_64
Architecture: amd64
Date: Fri Aug 20 00:20:33 2010
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-liblas

Revision history for this message
Ian Wusstig (vulpes-corsac) wrote :
Changed in python-liblas (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-liblas - 1.2.1-2

---------------
python-liblas (1.2.1-2) unstable; urgency=low

  * debian/control:
    - added myself to Uploaders
  * debian/patches/00-fix_library_search.patch added, fix code looking
    for system libraries. (Closes: #595603, #595608)
 -- Andrew Starr-Bochicchio <email address hidden> Sun, 12 Sep 2010 16:45:30 +0200

Changed in python-liblas (Ubuntu):
status: In Progress → Fix Released
Changed in python-liblas (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.