ElaadF / docker-wims

Allows to install Wims inside a docker container with the full set of tools use by Wims.
Apache License 2.0
1 stars 1 forks source link

docker build: Python version error #5

Open raoulhatterer opened 2 years ago

raoulhatterer commented 2 years ago
raoul@MacBook-Pro-de-Raoul Documents % mkdir dockerwims
raoul@MacBook-Pro-de-Raoul Documents % git clone https://github.com/ElaadF/docker-wims /Users/raoul/Documents/dockerwims 
Cloning into '/Users/raoul/Documents/dockerwims'...
remote: Enumerating objects: 190, done.
remote: Total 190 (delta 0), reused 0 (delta 0), pack-reused 190
Receiving objects: 100% (190/190), 46.12 KiB | 1.00 MiB/s, done.
Resolving deltas: 100% (109/109), done.
raoul@MacBook-Pro-de-Raoul Documents % cd dockerwims 
raoul@MacBook-Pro-de-Raoul dockerwims % ls
DATA        Dockerfile  LICENSE     README.md   config      runWims.sh
raoul@MacBook-Pro-de-Raoul dockerwims % docker build -t monwims1 .
[+] Building 77.8s (11/40)                                                                                                     
 => [internal] load build definition from Dockerfile                                                                      0.0s
 => => transferring dockerfile: 2.65kB                                                                                    0.0s
 => [internal] load .dockerignore                                                                                         0.0s
 => => transferring context: 2B                                                                                           0.0s
 => [internal] load metadata for docker.io/library/debian:stretch                                                         2.1s
 => [auth] library/debian:pull token for registry-1.docker.io                                                             0.0s
 => [ 1/35] FROM docker.io/library/debian:stretch@sha256:22cb208880101b9a665332a9360ba4c5c021e3ed2f791638369e9a9418dac98  3.1s
 => => resolve docker.io/library/debian:stretch@sha256:22cb208880101b9a665332a9360ba4c5c021e3ed2f791638369e9a9418dac981   0.0s
 => => sha256:22cb208880101b9a665332a9360ba4c5c021e3ed2f791638369e9a9418dac981 1.21kB / 1.21kB                            0.0s
 => => sha256:fe3d51dd3262e5d9b9584603da59e387619234d95182351e4f493a1e5998f1f0 529B / 529B                                0.0s
 => => sha256:daa15d2587f5a4a11cac92e9958ddd1fdc27695b672a017579ea86c4ffddf267 1.46kB / 1.46kB                            0.0s
 => => sha256:d3d4e1d44a24e0c5abd41b803d14f211ba153bc7963871713cba8ee5fc687888 45.43MB / 45.43MB                          1.3s
 => => extracting sha256:d3d4e1d44a24e0c5abd41b803d14f211ba153bc7963871713cba8ee5fc687888                                 1.7s
 => [internal] load build context                                                                                         0.0s
 => => transferring context: 1.94kB                                                                                       0.0s
 => [ 2/35] WORKDIR /home/wims                                                                                            0.2s
 => [ 3/35] RUN apt-get -y update                                                                                         2.1s
 => [ 4/35] RUN apt-get -y upgrade                                                                                        2.7s
 => [ 5/35] RUN apt-get install -y --no-install-recommends     python3     make     sudo     g++     texlive-base     g  66.8s 
 => ERROR [ 6/35] RUN wget "https://bootstrap.pypa.io/get-pip.py" &&     python3 get-pip.py                               0.6s 
------                                                                                                                         
 > [ 6/35] RUN wget "https://bootstrap.pypa.io/get-pip.py" &&     python3 get-pip.py:                                          
#10 0.255 --2022-06-18 16:10:53--  https://bootstrap.pypa.io/get-pip.py
#10 0.261 Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.120.175, 2a04:4e42:1d::175
#10 0.314 Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.120.175|:443... connected.
#10 0.379 HTTP request sent, awaiting response... 200 OK
#10 0.403 Length: 2680354 (2.6M) [text/x-python]
#10 0.403 Saving to: 'get-pip.py'
#10 0.403 
#10 0.403      0K .......... .......... .......... .......... ..........  1% 2.42M 1s
#10 0.423     50K .......... .......... .......... .......... ..........  3% 8.65M 1s
#10 0.429    100K .......... .......... .......... .......... ..........  5% 3.94M 1s
#10 0.442    150K .......... .......... .......... .......... ..........  7% 16.3M 0s
#10 0.445    200K .......... .......... .......... .......... ..........  9% 13.3M 0s
#10 0.448    250K .......... .......... .......... .......... .......... 11% 4.63M 0s
#10 0.460    300K .......... .......... .......... .......... .......... 13% 15.2M 0s
#10 0.462    350K .......... .......... .......... .......... .......... 15% 32.1M 0s
#10 0.464    400K .......... .......... .......... .......... .......... 17% 16.5M 0s
#10 0.467    450K .......... .......... .......... .......... .......... 19%  119M 0s
#10 0.467    500K .......... .......... .......... .......... .......... 21% 48.4M 0s
#10 0.468    550K .......... .......... .......... .......... .......... 22% 6.22M 0s
#10 0.476    600K .......... .......... .......... .......... .......... 24% 43.8M 0s
#10 0.477    650K .......... .......... .......... .......... .......... 26% 13.6M 0s
#10 0.480    700K .......... .......... .......... .......... .......... 28% 30.8M 0s
#10 0.482    750K .......... .......... .......... .......... .......... 30% 13.5M 0s
#10 0.486    800K .......... .......... .......... .......... .......... 32% 17.7M 0s
#10 0.488    850K .......... .......... .......... .......... .......... 34% 84.2M 0s
#10 0.489    900K .......... .......... .......... .......... .......... 36% 69.7M 0s
#10 0.490    950K .......... .......... .......... .......... .......... 38% 91.9M 0s
#10 0.490   1000K .......... .......... .......... .......... .......... 40% 25.9M 0s
#10 0.492   1050K .......... .......... .......... .......... .......... 42%  124M 0s
#10 0.492   1100K .......... .......... .......... .......... .......... 43%  126M 0s
#10 0.493   1150K .......... .......... .......... .......... .......... 45% 21.5M 0s
#10 0.495   1200K .......... .......... .......... .......... .......... 47% 29.1M 0s
#10 0.497   1250K .......... .......... .......... .......... .......... 49% 14.2M 0s
#10 0.500   1300K .......... .......... .......... .......... .......... 51% 31.0M 0s
#10 0.502   1350K .......... .......... .......... .......... .......... 53% 53.8M 0s
#10 0.503   1400K .......... .......... .......... .......... .......... 55% 11.0M 0s
#10 0.507   1450K .......... .......... .......... .......... .......... 57% 20.4M 0s
#10 0.510   1500K .......... .......... .......... .......... .......... 59% 30.2M 0s
#10 0.511   1550K .......... .......... .......... .......... .......... 61% 19.0M 0s
#10 0.514   1600K .......... .......... .......... .......... .......... 63%  131M 0s
#10 0.514   1650K .......... .......... .......... .......... .......... 64%  128M 0s
#10 0.514   1700K .......... .......... .......... .......... .......... 66% 28.4M 0s
#10 0.516   1750K .......... .......... .......... .......... .......... 68% 5.66M 0s
#10 0.525   1800K .......... .......... .......... .......... .......... 70% 36.2M 0s
#10 0.526   1850K .......... .......... .......... .......... .......... 72%  114M 0s
#10 0.527   1900K .......... .......... .......... .......... .......... 74% 39.1M 0s
#10 0.528   1950K .......... .......... .......... .......... .......... 76%  130M 0s
#10 0.528   2000K .......... .......... .......... .......... .......... 78%  185M 0s
#10 0.528   2050K .......... .......... .......... .......... .......... 80% 25.4M 0s
#10 0.530   2100K .......... .......... .......... .......... .......... 82% 54.7M 0s
#10 0.531   2150K .......... .......... .......... .......... .......... 84%  112M 0s
#10 0.532   2200K .......... .......... .......... .......... .......... 85%  107M 0s
#10 0.532   2250K .......... .......... .......... .......... .......... 87% 59.9M 0s
#10 0.533   2300K .......... .......... .......... .......... .......... 89% 48.6M 0s
#10 0.534   2350K .......... .......... .......... .......... .......... 91% 53.6M 0s
#10 0.535   2400K .......... .......... .......... .......... .......... 93% 63.8M 0s
#10 0.536   2450K .......... .......... .......... .......... .......... 95% 68.0M 0s
#10 0.536   2500K .......... .......... .......... .......... .......... 97%  149M 0s
#10 0.537   2550K .......... .......... .......... .......... .......... 99% 39.1M 0s
#10 0.538   2600K .......... .......                                    100% 53.5M=0.1s
#10 0.538 
#10 0.538 2022-06-18 16:10:53 (18.9 MB/s) - 'get-pip.py' saved [2680354/2680354]
#10 0.538 
#10 0.574 ERROR: This script does not work on Python 3.5 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.5/get-pip.py instead.
------
executor failed running [/bin/sh -c wget "https://bootstrap.pypa.io/get-pip.py" &&     python3 get-pip.py]: exit code: 1
raoul@MacBook-Pro-de-Raoul dockerwims % 
Da3az commented 2 years ago

The error mentioning Python 3.5 is no longer supported , You will find how the same error is solved here In the DockeFile change line n°35 which should be

RUN wget https://bootstrap.pypa.io/get-pip.py

into ( You can try other versions then 2.7 )

RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py