I just rented a google cloud machine to run the docker container locally in order to do some quick tests
Downloaded the repo and built the image, when running the image with the provided command on the readme file I got an error that sanic was not found, very weird.
I looked at the build logs (I don’t have anymore right now but I can reproduce) and it seemed that it did install everything, every step of the dockerfile ran ok without major errors apparently.
Finding this very strange I did enter the container as bash, and pip list indeed did not show sanic, i did install manually just because wtf and then tried to execute the server file manually on the docker bash shell, and to my surprise, now pipelines module could not be found, indeed it was not in pip list either.
Something quite strange happened at some point and I cannot figure out, I hardly ever use docker.
My major question would be, does that seem like a classic problem with docker build installing only a few modules and not others?
- After writing the above I did another test, still on the docker bash terminal, I just ran the same command that dockerfile uses to install, pip install -r requirements.txt and to my surprise here’s the error:
root@0fe72a6ac9e3:/api# pip install -r requirements.txt
Collecting sanic==22.6.2
Using cached sanic-22.6.2-py3-none-any.whl (271 kB)
Collecting transformers==4.22.2
Using cached transformers-4.22.2-py3-none-any.whl (4.9 MB)
ERROR: Ignored the following versions that require a different python version: 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12; 1.9.2 Requires-Python >=3.8; 1.9.3 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement scipy==1.9.3 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0rc1, 1.6.0rc2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.7.0rc1, 1.7.0rc2, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for scipy==1.9.3
Then, obviously to double check, and another surprise:
root@0fe72a6ac9e3:/api# python --version
Python 3.7.13
Looking at the dockerfile is not intuitive as I see no explicit python version being installed or configured, at least to my very limited knowledge.
Could someone give some light how can I get this rolling?
- edit: downloaded repo again, built again, build logs here pip list and pip manual install