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

docker build failing #123

Open
ekg opened this issue Sep 20, 2022 · 3 comments
Open

docker build failing #123

ekg opened this issue Sep 20, 2022 · 3 comments

Comments

@ekg
Copy link

ekg commented Sep 20, 2022

I'm unable to build using docker:

erik@copito [01:10:50 PM] [~/blobtools] [master]
-> % docker build -t drl/blobtools . 

This crashes and burns:

Collecting package metadata (repodata.json): ...working... done
                                                                                            
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed
                                                                                            
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.31=0
  - pysam -> libgcc-ng[version='>=9.3.0'] -> __glibc[version='>=2.17']
  - python=3.9 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.31

I actually tried docker because I got the exact same error when building in a conda environment. It looks like something has gone wrong in bioconda's dependencies?

@ywxue00
Copy link

ywxue00 commented Apr 6, 2023

@ekg Hello, how did this error of yours finally solve, I also encountered the same error. Looking forward to your response.

@ekg
Copy link
Author

ekg commented Apr 6, 2023 via email

@edwardbirdlab
Copy link

edwardbirdlab commented Jul 22, 2023

By changing from conda to pip in the Dockerfile, I was able to successfully install the requirements and get the container working. Incase anyone runs into the same issue my docker File looks like this:

FROM continuumio/miniconda3

#RUN conda install -c anaconda matplotlib docopt tqdm wget pyyaml git
#RUN conda install -c bioconda pysam --update-deps
RUN git clone https://github.com/DRL/blobtools.git
WORKDIR blobtools
RUN pip install -r requirements.txt
RUN ./blobtools -h
#RUN ./blobtools create -i example/assembly.fna -b example/mapping_1.bam -t example/blast.out -o example/test
RUN wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz -P data/
RUN tar zxf data/taxdump.tar.gz -C data/ nodes.dmp names.dmp
RUN ./blobtools nodesdb --nodes data/nodes.dmp --names data/names.dmp
ENV PATH="$PATH:/blobtools"

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

3 participants