BergmannLab / MONET

MONET : MOdularising NEtwork Toolbox - https://doi.org/10.1093/bioinformatics/btaa236
GNU General Public License v3.0
41 stars 15 forks source link

Error: building k1-image #47

Closed ngerstner closed 3 years ago

ngerstner commented 3 years ago

Hi,

When trying to build the k1-image from the given Dockerfile, I get the following error:


$ docker build -f Dockerfile -t k1-image ~/.monet/containers/K1/docker/
[+] Building 2.0s (10/14)
 => [internal] load build definition from Dockerfile                                                                                                        0.0s
 => => transferring dockerfile: 1.89kB                                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                                             0.0s
 => [ 1/11] FROM docker.io/library/ubuntu:20.04                                                                                                             0.0s
 => CACHED [ 2/11] RUN apt update                                                                                                                           0.0s
 => CACHED [ 3/11] RUN apt -y install python2                                                                                                               0.0s
 => CACHED [ 4/11] RUN apt -y install curl                                                                                                                  0.0s
 => CACHED [ 5/11] RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py                                                                0.0s
 => CACHED [ 6/11] RUN python2 get-pip.py                                                                                                                   0.0s
 => ERROR [ 7/11] RUN pip2 install python-igraph                                                                                                            2.0s
------
 > [ 7/11] RUN pip2 install python-igraph:
#10 0.386 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
#10 0.566 Collecting python-igraph
#10 0.674   Downloading python-igraph-0.9.1.tar.gz (3.6 MB)
#10 1.857     ERROR: Command errored out with exit status 1:
#10 1.857      command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-B5EzJC/python-igraph/setup.py'"'"'; __file__='"'"'/tmp/pip-install-B5EzJC/python-igraph/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ldieaj
#10 1.857          cwd: /tmp/pip-install-B5EzJC/python-igraph/
#10 1.857     Complete output (6 lines):
#10 1.857     Traceback (most recent call last):
#10 1.857       File "<string>", line 1, in <module>
#10 1.857       File "/tmp/pip-install-B5EzJC/python-igraph/setup.py", line 459
#10 1.857         raise RuntimeError(f"Failed to clean {folder} with git")
#10 1.857                                                               ^
#10 1.857     SyntaxError: invalid syntax
#10 1.857     ----------------------------------------
#10 1.857 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
------
executor failed running [/bin/sh -c pip2 install python-igraph]: exit code: 1

Do you have any ideas/hints how to solve this?

Thanks, Nathalie

samanfrm commented 3 years ago

Hi,

I have same issue. It seems like python-igraph library can't be installed in the container. Is there anyway to correct this?

jjc2718 commented 3 years ago

I opened #48 to fix this issue. In the meantime before it's merged, you can make the change from that PR manually in your Dockerfile or Singularity file (it's a simple one-line change).

Sorry for the delay, things have been busy.