Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install issue with quick install command #265

Closed
BIOSTARFAN opened this issue May 31, 2023 · 13 comments
Closed

install issue with quick install command #265

BIOSTARFAN opened this issue May 31, 2023 · 13 comments

Comments

@BIOSTARFAN
Copy link

$ 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
Copy link
Member

ialbert commented May 31, 2023

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

mamba-org/mamba#1826

@ialbert
Copy link
Member

ialbert commented May 31, 2023

what system is this Mac OS M1/M2?

@BIOSTARFAN
Copy link
Author

I used the windows system, using ubuntu as terminal

@ialbert
Copy link
Member

ialbert commented May 31, 2023

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

@BIOSTARFAN
Copy link
Author

I have installed anaconda on my computer before.

@ialbert
Copy link
Member

ialbert commented May 31, 2023

in the same shell?

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

@BIOSTARFAN
Copy link
Author

I can uninstall anaconda to have a try. Thanks.

@BIOSTARFAN
Copy link
Author

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

@ialbert
Copy link
Member

ialbert commented Jun 1, 2023

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
Copy link
Author

I got a new problem when install step by step. At step 9:
9. 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
Copy link
Member

ialbert commented Jun 7, 2023

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
Copy link
Author

BIOSTARFAN commented Jun 7, 2023

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
Copy link
Member

ialbert commented Jun 8, 2023

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

@ialbert ialbert closed this as completed Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants