[Debian-med-packaging] Dynamic library inside Python module python-pysam not found

Andreas Tille andreas at fam-tille.de
Wed Jan 25 16:28:34 UTC 2017


Hi,

On Wed, Jan 25, 2017 at 04:54:29PM +0100, Olivier Sallou wrote:
> > tests of python-pbcore failed with
> >
> >   ERROR: Failure: ImportError (libchtslib.so: cannot open shared object file: No such file or directory)
> >
> > When installing python-pysam 0.10.0+ds-1 I get
> >
> > $ ls -l /usr/lib/python2.7/dist-packages/pysam/libchtslib.*.so
> > -rw-r--r-- 1 root root 103864 Jan 24 04:13 /usr/lib/python2.7/dist-packages/pysam/libchtslib.x86_64-linux-gnu.so
> Certainly because at build time it compiles against libchtslib.so
> provided by a -dev package and keeps this reference instead of using
> "real" library file libchtslib.x86_64-linux-gnu.so

I can confirm that there is a hack around this by simply doing

   ln -s libchtslib.x86_64-linux-gnu.so /usr/lib/python2.7/dist-packages/pysam/libchtslib.so

but what would be the "clean" solution for this problem?
 
Kind regards

      Andreas. 

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list