gbouras13 / plassembler

Program to quickly and accurately assemble plasmids in hybrid and long-only sequenced bacterial isolates
MIT License
50 stars 3 forks source link

Conda Install error v1.0.0 no Samtools #9

Closed gbouras13 closed 1 year ago

gbouras13 commented 1 year ago

Describe the bug

Samtools not found when plassembler v1.0.0 installed

To Reproduce

conda create -n plassemblerENV plassembler
conda activate plassemblerENV
plassembler.py -l <long read> -1 <short read R1> -2 <short read R2> -d <db> -o <output>

Expected behavior Plassembler to work

Additional context

The output shows Samtools is not found.

Starting plassembler v1.0.0
Checking dependencies.
Flye version found is v2.9.2-b1786.
Flye version is ok.
Unicycler version found is v0.4.8.
Unicycler version is older than v0.5.0 - Plassembler will continue but please consider installing Unicycler v0.5.0. See instructions at https://github.com/gbouras13/plassembler.
SPAdes v3.15.2 found.
Samtools not found.

And when you try loading Samtools, it seems as though v1.6 is installed, which won't work

dyld[19441]: Library not loaded: @rpath/libcrypto.3.dylib
  Referenced from: <5FB54C5A-16F0-3543-939D-AEF018A190BC> 
/mambaforge/envs/bad_plassembler/bin/samtools
  Reason: tried: '/mambaforge/envs/bad_plassembler/bin/../lib/libcrypto.3.dylib' (no such file), '/mambaforge/envs/bad_plassembler/bin/../lib/libcrypto.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libcrypto.3.dylib' (no such file), '/mambaforge/envs/bad_plassembler/bin/../lib/libcrypto.3.dylib' (no such file), '/mambaforge/envs/bad_plassembler/bin/../lib/libcrypto.3.dylib' (no such file), '/usr/local/lib/libcrypto.3.dylib' (no such file), '/usr/lib/libcrypto.3.dylib' (no such file, not in dyld cache)
[1]    19441 abort      samtools

Fix

Until I have fixed the conda recipe and environment.yaml to make sure Samtools is >=1.7,<1.10 , this should work:

create -n plassemblerENV plassembler pysam==0.15.2
conda activate plassemblerENV
plassembler.py .....
gbouras13 commented 1 year ago

Closed by v1.0.0 recipe update