dixudx / dixudx/trac-docker

Build fails due to f-string incompatibility with Python 2.7

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
20
Forks
21
PR merge metrics
No merged PRs in 30d

Description

## Description
The Docker build fails when attempting to install Babel due to Python version incompatibility. The newer version of Babel uses f-strings which are not supported in 2.7.

## Error Message
```shell
=> ERROR [ 3/16] RUN pip install --upgrade Babel Trac
> [ 3/16] RUN pip install --upgrade Babel Trac:
Collecting Babel
Downloading https://files.pythonhosted.org/packages/2a/74/f1bc80f23eeba13393b7222b11d95ca3af2c1e28edca18af487137eefed9/babel-2.16.0.tar.gz (9.3MB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-md0QO2/Babel/setup.py", line 9
sys.stderr.write(f"Unable to import Babel ({exc}). Are you running a supported version of Python?\n")
^
SyntaxError: invalid syntax

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.