biostars / biostar-handbook

Issue tracker for the Biostar Handbook
57 stars 12 forks source link

samtools install error #175

Closed njbowen closed 2 years ago

njbowen commented 2 years ago

$ curl -s http://data.biostarhandbook.com/install/conda.txt | xargs mamba install -q -y Encountered problems while solving. Problem: package samtools-1.14-hdbfa7a9_0 requires htslib >=1.14,<1.15.0a0, but none of the providers can be installed

(bioinfo)

seems that the samstools htslib install is not working for me.
on an iMac intel

ialbert commented 2 years ago

what happens if you install just samtools alone:

mamba install samtools

one recurring problem that leads to mysterious errors is when the MacOS is bit out of date (or the XCode component is not quite updated)

njbowen commented 2 years ago

from within a preexisting conda bioinfo environment: mamba install samtools seems to have worked ok, i should add, I was trying to do the "new install script" on a machine that was already set up last semester. i use your textbook in course instruction and was trying to get ahead of any troubleshooting. this action might not have been advised, it may not have this issue on "virgin" machines.

njbowen commented 2 years ago

here's what I'm getting now when running the current install script (maybe I should start in a newly created conda env or start in base) on a machine that already has conda/mamba installed. nbowen@4210-iMac-3 ~

$ curl http://data.biostarhandbook.com/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2766  100  2766    0     0   8904      0 --:--:-- --:--:-- --:--:--  8951

# Bootstrapping the Biostar Handbook ...

# Installing bioinformatics software
Encountered problems while solving.
Problem: nothing provides requested r-base >=4
Problem: nothing provides requested samtools >=1.14
Problem: nothing provides requested mafft

(bioinfo) 
nbowen@4210-iMac-3 ~
$ 
ialbert commented 2 years ago

it is true that perhaps I have not explored all possible ways the install script may interact with existing environments

the way it works is that it will bootstrap everything, even conda itself.

I will explore a little more closely what happens if one already has a bioinfo environment present

to see it work on a brand new system delete every conda related content

rm -rf ~/miniconda3 ~/minicond*.sh ~/.condarc ~/.conda 

(you may want to also edit bashrc to remove the conda initialization)

then reopen the terminal and run the installation command again

ialbert commented 2 years ago

I will also mention that occasionally (yearly) is worth doing the above reset, as with time the environments accrue a lot of cruft (if one does a lot of explorations like I do). After a year or so the installation directories become both huge and very slow to work with

njbowen commented 2 years ago

the reset worked. thanks.