MAX-Image-Resolution-Enhancer icon indicating copy to clipboard operation
MAX-Image-Resolution-Enhancer copied to clipboard

Local installation fails. (Windows/Docker)

Open Osiris-Team opened this issue 2 years ago • 7 comments

Followed the instructions step by step on my Windows PowerShell, but it fails in the last mile (related to #50). Im on latest Windows 10 x64, with latest Docker-Desktop installed. Full log:

PS D:\Coding\DOCKER> git clone https://github.com/IBM/max-image-resolution-enhancer.git
Cloning into 'max-image-resolution-enhancer'...
remote: Enumerating objects: 331, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 331 (delta 5), reused 3 (delta 0), pack-reused 309
Receiving objects: 100% (331/331), 49.91 MiB | 3.05 MiB/s, done.
Resolving deltas: 100% (137/137), done.
PS D:\Coding\DOCKER> cd max-image-resolution-enhancer
PS D:\Coding\DOCKER\max-image-resolution-enhancer> docker build -t max-image-resolution-enhancer .
[+] Building 941.2s (10/10) FINISHED
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 1.23kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 177B                                                                                  0.0s
 => [internal] load metadata for quay.io/codait/max-base:v1.5.1                                                    1.4s
 => [1/6] FROM quay.io/codait/max-base:v1.5.1@sha256:d1331f18b84febe076526cf6d079e45de6f9daecb4df37dd97ac5324b4c  83.3s
 => => resolve quay.io/codait/max-base:v1.5.1@sha256:d1331f18b84febe076526cf6d079e45de6f9daecb4df37dd97ac5324b4c7  0.0s
 => => sha256:ff810a0db00f457531a6f5f0f9e75b76c1093e1be7664260e7a5b91302f667fb 51.25MB / 51.25MB                  24.6s
 => => sha256:2cb7a358a8ff985ab94017c32a965d59903dd27291d2d0f4aa78348d19cc3388 58.19MB / 58.19MB                  26.6s
 => => sha256:d1331f18b84febe076526cf6d079e45de6f9daecb4df37dd97ac5324b4c757fc 2.42kB / 2.42kB                     0.0s
 => => sha256:f6ca74aba0b71a390c27ac2ee316d3994b108bc0a4986d53299f305d6b942ade 6.75kB / 6.75kB                     0.0s
 => => sha256:33847f680f63fb1b343a9fc782e267b5abdbdb50d65d4b9bd2a136291d67cf75 27.15MB / 27.15MB                  12.3s
 => => sha256:1c77cb174e529c027d9fe415b05a651321725af70d87cd7481fa1d634e56c6a5 1.63MB / 1.63MB                    13.3s
 => => extracting sha256:33847f680f63fb1b343a9fc782e267b5abdbdb50d65d4b9bd2a136291d67cf75                          1.7s
 => => sha256:c22d4f38b378df698708809f6e72c1a176c019e5b30b2b43ab5111ee7e85c994 4.58kB / 4.58kB                    13.4s
 => => sha256:3bf0e48704e3d9f275d277f1d0ce06fd7970386e2390a7049f2b3e7388f2b9f2 58.19MB / 58.19MB                  40.3s
 => => sha256:0a190a0824c19d21b2331b94d3713be23714d0e2a7857d0e3e577837f475e3a3 173B / 173B                        24.8s
 => => extracting sha256:ff810a0db00f457531a6f5f0f9e75b76c1093e1be7664260e7a5b91302f667fb                          3.3s
 => => sha256:75c4005c73c5a47debd16cff4cf37b881aa1fd0d1613451f9bbb3c420802a784 5.23kB / 5.23kB                    25.0s
 => => sha256:1da59b80543d1260a6d19ced29a7ff2f072424ad73fa8094795bf74355625fff 130.96MB / 130.96MB                69.9s
 => => sha256:fa242c43983c4526f9c5f9ed886753769c7039944f7013e406ad6bfa1c46a3bd 59.49MB / 59.49MB                  51.8s
 => => extracting sha256:2cb7a358a8ff985ab94017c32a965d59903dd27291d2d0f4aa78348d19cc3388                          4.0s
 => => extracting sha256:1c77cb174e529c027d9fe415b05a651321725af70d87cd7481fa1d634e56c6a5                          0.1s
 => => extracting sha256:c22d4f38b378df698708809f6e72c1a176c019e5b30b2b43ab5111ee7e85c994                          0.1s
 => => extracting sha256:3bf0e48704e3d9f275d277f1d0ce06fd7970386e2390a7049f2b3e7388f2b9f2                          3.9s
 => => extracting sha256:0a190a0824c19d21b2331b94d3713be23714d0e2a7857d0e3e577837f475e3a3                          0.0s
 => => extracting sha256:75c4005c73c5a47debd16cff4cf37b881aa1fd0d1613451f9bbb3c420802a784                          0.0s
 => => extracting sha256:1da59b80543d1260a6d19ced29a7ff2f072424ad73fa8094795bf74355625fff                          3.8s
 => => extracting sha256:fa242c43983c4526f9c5f9ed886753769c7039944f7013e406ad6bfa1c46a3bd                          2.3s
 => [internal] load build context                                                                                  0.2s
 => => transferring context: 16.33MB                                                                               0.2s
 => [2/6] RUN wget -nv --show-progress --progress=bar:force:noscroll https://codait-cos-max.s3.us.cloud-object-  603.1s
 => [3/6] COPY requirements.txt .                                                                                  0.0s
 => [4/6] RUN pip install -r requirements.txt                                                                    252.4s
 => [5/6] COPY . .                                                                                                 0.1s
 => ERROR [6/6] RUN sha512sum -c sha512sums.txt                                                                    0.8s
------
 > [6/6] RUN sha512sum -c sha512sums.txt:
#10 0.574 sha512sum: 'assets/SRGAN/model.data-00000-of-00001'$'\r': No such file or directory
#10 0.574 sha512sum: 'assets/SRGAN/model.index'$'\r': No such file or directory
: FAILED open or readN/model.data-00000-of-00001
: FAILED open or readN/model.index
#10 0.574 sha512sum: 'assets/SRGAN/model.meta'$'\r': No such file or directory
#10 0.574 sha512sum: WARNING: 3 listed files could not be read
: FAILED open or readN/model.meta
------
executor failed running [/bin/sh -c sha512sum -c sha512sums.txt]: exit code: 1
PS D:\Coding\DOCKER\max-image-resolution-enhancer> docker run -it -p 5000:5000 max-image-resolution-enhancer
Unable to find image 'max-image-resolution-enhancer:latest' locally
docker: Error response from daemon: pull access denied for max-image-resolution-enhancer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Osiris-Team avatar Apr 28 '22 09:04 Osiris-Team

@Osiris-Team It works for me on Windows 10 Home. Given instructions (in README) will work, but it'll take some time to build the image. For me it took ~45min.

image

nkilm avatar Dec 18 '22 17:12 nkilm

Same issue. Also on latest Windows 10 x64, with Docker-Desktop installed but running engine version 20.10.7. Upgraded to 20.10.21 - issue persists

heathykeithy avatar Jan 08 '23 14:01 heathykeithy

@heathykeithy I'm also using same version of docker. But I didnt' face any issues. image

nkilm avatar Jan 08 '23 14:01 nkilm

Currently facing this issue. Did anyone find a fix?

BenMorrison1 avatar Aug 20 '23 13:08 BenMorrison1

Followed the instructions step by step on my Windows PowerShell, but it fails in the last mile (related to #50). Im on latest Windows 10 x64, with latest Docker-Desktop installed. Full log:

PS D:\Coding\DOCKER> git clone https://github.com/IBM/max-image-resolution-enhancer.git
Cloning into 'max-image-resolution-enhancer'...
remote: Enumerating objects: 331, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 331 (delta 5), reused 3 (delta 0), pack-reused 309
Receiving objects: 100% (331/331), 49.91 MiB | 3.05 MiB/s, done.
Resolving deltas: 100% (137/137), done.
PS D:\Coding\DOCKER> cd max-image-resolution-enhancer
PS D:\Coding\DOCKER\max-image-resolution-enhancer> docker build -t max-image-resolution-enhancer .
[+] Building 941.2s (10/10) FINISHED
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 1.23kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 177B                                                                                  0.0s
 => [internal] load metadata for quay.io/codait/max-base:v1.5.1                                                    1.4s
 => [1/6] FROM quay.io/codait/max-base:v1.5.1@sha256:d1331f18b84febe076526cf6d079e45de6f9daecb4df37dd97ac5324b4c  83.3s
 => => resolve quay.io/codait/max-base:v1.5.1@sha256:d1331f18b84febe076526cf6d079e45de6f9daecb4df37dd97ac5324b4c7  0.0s
 => => sha256:ff810a0db00f457531a6f5f0f9e75b76c1093e1be7664260e7a5b91302f667fb 51.25MB / 51.25MB                  24.6s
 => => sha256:2cb7a358a8ff985ab94017c32a965d59903dd27291d2d0f4aa78348d19cc3388 58.19MB / 58.19MB                  26.6s
 => => sha256:d1331f18b84febe076526cf6d079e45de6f9daecb4df37dd97ac5324b4c757fc 2.42kB / 2.42kB                     0.0s
 => => sha256:f6ca74aba0b71a390c27ac2ee316d3994b108bc0a4986d53299f305d6b942ade 6.75kB / 6.75kB                     0.0s
 => => sha256:33847f680f63fb1b343a9fc782e267b5abdbdb50d65d4b9bd2a136291d67cf75 27.15MB / 27.15MB                  12.3s
 => => sha256:1c77cb174e529c027d9fe415b05a651321725af70d87cd7481fa1d634e56c6a5 1.63MB / 1.63MB                    13.3s
 => => extracting sha256:33847f680f63fb1b343a9fc782e267b5abdbdb50d65d4b9bd2a136291d67cf75                          1.7s
 => => sha256:c22d4f38b378df698708809f6e72c1a176c019e5b30b2b43ab5111ee7e85c994 4.58kB / 4.58kB                    13.4s
 => => sha256:3bf0e48704e3d9f275d277f1d0ce06fd7970386e2390a7049f2b3e7388f2b9f2 58.19MB / 58.19MB                  40.3s
 => => sha256:0a190a0824c19d21b2331b94d3713be23714d0e2a7857d0e3e577837f475e3a3 173B / 173B                        24.8s
 => => extracting sha256:ff810a0db00f457531a6f5f0f9e75b76c1093e1be7664260e7a5b91302f667fb                          3.3s
 => => sha256:75c4005c73c5a47debd16cff4cf37b881aa1fd0d1613451f9bbb3c420802a784 5.23kB / 5.23kB                    25.0s
 => => sha256:1da59b80543d1260a6d19ced29a7ff2f072424ad73fa8094795bf74355625fff 130.96MB / 130.96MB                69.9s
 => => sha256:fa242c43983c4526f9c5f9ed886753769c7039944f7013e406ad6bfa1c46a3bd 59.49MB / 59.49MB                  51.8s
 => => extracting sha256:2cb7a358a8ff985ab94017c32a965d59903dd27291d2d0f4aa78348d19cc3388                          4.0s
 => => extracting sha256:1c77cb174e529c027d9fe415b05a651321725af70d87cd7481fa1d634e56c6a5                          0.1s
 => => extracting sha256:c22d4f38b378df698708809f6e72c1a176c019e5b30b2b43ab5111ee7e85c994                          0.1s
 => => extracting sha256:3bf0e48704e3d9f275d277f1d0ce06fd7970386e2390a7049f2b3e7388f2b9f2                          3.9s
 => => extracting sha256:0a190a0824c19d21b2331b94d3713be23714d0e2a7857d0e3e577837f475e3a3                          0.0s
 => => extracting sha256:75c4005c73c5a47debd16cff4cf37b881aa1fd0d1613451f9bbb3c420802a784                          0.0s
 => => extracting sha256:1da59b80543d1260a6d19ced29a7ff2f072424ad73fa8094795bf74355625fff                          3.8s
 => => extracting sha256:fa242c43983c4526f9c5f9ed886753769c7039944f7013e406ad6bfa1c46a3bd                          2.3s
 => [internal] load build context                                                                                  0.2s
 => => transferring context: 16.33MB                                                                               0.2s
 => [2/6] RUN wget -nv --show-progress --progress=bar:force:noscroll https://codait-cos-max.s3.us.cloud-object-  603.1s
 => [3/6] COPY requirements.txt .                                                                                  0.0s
 => [4/6] RUN pip install -r requirements.txt                                                                    252.4s
 => [5/6] COPY . .                                                                                                 0.1s
 => ERROR [6/6] RUN sha512sum -c sha512sums.txt                                                                    0.8s
------
 > [6/6] RUN sha512sum -c sha512sums.txt:
#10 0.574 sha512sum: 'assets/SRGAN/model.data-00000-of-00001'$'\r': No such file or directory
#10 0.574 sha512sum: 'assets/SRGAN/model.index'$'\r': No such file or directory
: FAILED open or readN/model.data-00000-of-00001
: FAILED open or readN/model.index
#10 0.574 sha512sum: 'assets/SRGAN/model.meta'$'\r': No such file or directory
#10 0.574 sha512sum: WARNING: 3 listed files could not be read
: FAILED open or readN/model.meta
------
executor failed running [/bin/sh -c sha512sum -c sha512sums.txt]: exit code: 1
PS D:\Coding\DOCKER\max-image-resolution-enhancer> docker run -it -p 5000:5000 max-image-resolution-enhancer
Unable to find image 'max-image-resolution-enhancer:latest' locally
docker: Error response from daemon: pull access denied for max-image-resolution-enhancer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

For quick fix, open the "Dockerfile" with notepad or notepad++ and comment the line: "RUN sha512sum -c sha512sums.txt" then try running docker build again.

psydox avatar Oct 03 '23 09:10 psydox

@psydox I guess that would disable the checksum check to see if the installation is correct?

Osiris-Team avatar Oct 03 '23 10:10 Osiris-Team

@psydox I guess that would disable the checksum check to see if the installation is correct?

It fails because sha512sum is a linux command line tool that is part of CoreUtils if I am not mistaken. So commenting the line enable docker to skip it.

psydox avatar Oct 11 '23 13:10 psydox