On Wed, Jan 25, 2017 at 05:28:34PM +0100, Andreas Tille 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? First you need to find out if that lib is some useful code or a copy of libhts that for some reason got built and used even with HTSLIB_MODE=external. If it should still be built, then it's either a shared lib and then it doesn't belong in dist-packages, or a python module and then it shouldn't ne linked against. -- WBR, wRAR
Attachment:
signature.asc
Description: PGP signature