cabot icon indicating copy to clipboard operation
cabot copied to clipboard

Docker Images build fails

Open paulkitt opened this issue 3 years ago • 1 comments

When build the freshly cloned repo docker-compose build fails with:

Collecting pip
  Downloading https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0/pip-21.2.4.tar.gz (1.6MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-IBoPUJ/pip/setup.py", line 7
        def read(rel_path: str) -> str:
                         ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-IBoPUJ/pip/
You are using pip version 8.1.2, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c pip install --upgrade pip' returned a non-zero code: 1
ERROR: Service 'web' failed to build

Updating the base image in the dockerfile can fix this.

paulkitt avatar Sep 13 '21 13:09 paulkitt

Confirming as a bug, image node:4-alpine is running Python 2.7.14 which does not understand type annotations used by Python >=3 and pip >=21.

hartwork avatar Jul 17 '22 17:07 hartwork