Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Images build fails #711

Open
paulkitt opened this issue Sep 13, 2021 · 1 comment
Open

Docker Images build fails #711

paulkitt opened this issue Sep 13, 2021 · 1 comment

Comments

@paulkitt
Copy link

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.

@hartwork
Copy link
Contributor

hartwork commented Jul 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants