biostars / biostar-handbook

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

install issue with quick install command #265

Closed BIOSTARFAN closed 1 year ago

BIOSTARFAN commented 1 year ago

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

1/10 Bootstrapping the Biostar Handbook

# #

7/10 Installing bioinformatics software

# Traceback (most recent call last): File "/home/zengf/miniconda3/condabin/mamba", line 7, in from mamba.mamba import main File "/home/zengf/miniconda3/lib/python3.10/site-packages/mamba/mamba.py", line 49, in import libmambapy as api File "/home/zengf/miniconda3/lib/python3.10/site-packages/libmambapy/init.py", line 7, in raise e File "/home/zengf/miniconda3/lib/python3.10/site-packages/libmambapy/init.py", line 4, in from libmambapy.bindings import * # noqa: F401,F403 ImportError: libarchive.so.13: cannot open shared object file: No such file or directory (base)

ialbert commented 1 year ago

this is a weird error, as it fails at installing mamba, hence well before even getting to install any bioinformatics tools

this may be a mamba related issue, in which case I need to rework the installation

https://github.com/mamba-org/mamba/issues/1826

ialbert commented 1 year ago

what system is this Mac OS M1/M2?

BIOSTARFAN commented 1 year ago

I used the windows system, using ubuntu as terminal

ialbert commented 1 year ago

did you already have anaconda/miniconda installed or was it a brand new shell?

BIOSTARFAN commented 1 year ago

I have installed anaconda on my computer before.

ialbert commented 1 year ago

in the same shell?

I think that is the problem here, make a new user that runs a separate environment

BIOSTARFAN commented 1 year ago

I can uninstall anaconda to have a try. Thanks.

BIOSTARFAN commented 1 year ago

I deleted the anaconda and had another try, still not work, showing the same errors.

ialbert commented 1 year ago

you also have to uninstall everything for the handbook

curl http://data.biostarhandbook.com/uninstall.sh | bash

then

http://data.biostarhandbook.com/install.sh | bash

maybe the best is to start with a clean Unix system. Uninstall Ubuntu and reinstall it.

It is sad though that conda itself is incapable of working corretly, the whole point of it was supposed to avoid these problems.

BIOSTARFAN commented 1 year ago

I got a new problem when install step by step. At step 9:

  1. Install the bioinformatics software

    Activate bioinfo.

    conda activate bioinfo

Install the software.

$ curl -s http://data.biostarhandbook.com/install/conda.txt | xargs mamba install -q -y Could not solve for environment specs The following packages are incompatible ├─ bcftools does not exist (perhaps a typo or a missing channel); ├─ bedtools does not exist (perhaps a typo or a missing channel); ├─ bioawk does not exist (perhaps a typo or a missing channel); ├─ blast does not exist (perhaps a typo or a missing channel); ├─ bowtie2 does not exist (perhaps a typo or a missing channel); ├─ bwa does not exist (perhaps a typo or a missing channel); ├─ csvtk does not exist (perhaps a typo or a missing channel); ├─ datamash does not exist (perhaps a typo or a missing channel); ├─ emboss does not exist (perhaps a typo or a missing channel); ├─ fastp does not exist (perhaps a typo or a missing channel); ├─ fastqc does not exist (perhaps a typo or a missing channel); ├─ freebayes does not exist (perhaps a typo or a missing channel); ├─ hisat2 does not exist (perhaps a typo or a missing channel); ├─ mafft does not exist (perhaps a typo or a missing channel); ├─ minimap2 does not exist (perhaps a typo or a missing channel); ├─ parallel does not exist (perhaps a typo or a missing channel); ├─ perl-text-csv does not exist (perhaps a typo or a missing channel); ├─ samtools >=1.14 does not exist (perhaps a typo or a missing channel); ├─ seqkit does not exist (perhaps a typo or a missing channel); ├─ seqtk does not exist (perhaps a typo or a missing channel); ├─ snpeff 5.0 does not exist (perhaps a typo or a missing channel); ├─ subread does not exist (perhaps a typo or a missing channel); ├─ trimmomatic does not exist (perhaps a typo or a missing channel); └─ ucsc-bedgraphtobigwig does not exist (perhaps a typo or a missing channel). (bioinfo)

ialbert commented 1 year ago

sounds like the channels are not activated, as it says in the error.

In general if you get an error where nothing works that indicates a step was missed before. If you get an error where one single tool does not work then it might be some local issue. But when the whole thing fails then it means something is fundamentally not in order.

BIOSTARFAN commented 1 year ago

As the auto install script died at step 7 and I started from step 7. Forgot to activate bioconda. Now, all good. Thanks very much for your help. For the original problem, it because I didn't install conda, just run the install script directly (I read the pdf version of the book which skips conda install and activate biocnda). Now, all fixed. I will read the online version of the book.

$ ~/bin/doctor.py
# Doctor! Doctor! Give me the news.
# Checking symptoms ...
# bwa           ... OK
# datamash      ... OK
# fastqc -h     ... OK
# hisat2        ... OK
# seqret -h     ... OK
# featureCounts ... OK
# efetch        ... OK
# esearch       ... OK
# samtools      ... OK
# fastq-dump    ... OK
# bowtie2       ... OK
# bcftools      ... OK
# seqtk         ... OK
# seqkit        ... OK
# bio           ... OK
# fastq-dump -X 1 -Z SRR1553591 ... OK
# You are doing well, Majesty!
(bioinfo)
ialbert commented 1 year ago

sounds like it all worked. Glad to hear. I will be closing this issue then