Issue while trying to install celery==5.2.0 in Docker build process. The installation fails due to invalid metadata in the specified version of Celery. The error message indicates that the metadata has an unexpected character which prevents the installation from proceeding.
#23 34.06 WARNING: Ignoring version 5.2.0 of celery since it has invalid metadata:
#23 34.06 Requested celery==5.2.0 from https://files.pythonhosted.org/packages/76/f3/1299844327e0da1a89dfeffc0ee72dee80ed029df60c1634be708e7115fb/celery-5.2.0-py3-none-any.whl (from -r /requirements.txt (line 6)) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
#23 34.06 pytz (>dev)
#23 34.06 ~^
#23 34.06 Please use pip<24.1 if you need to use this version.
#23 34.06 ERROR: Ignored the following yanked versions: 5.0.6, 5.2.5
#23 34.06 ERROR: Could not find a version that satisfies the requirement celery==5.2.0
#23 34.06 ERROR: No matching distribution found for celery==5.2.0
#23 ERROR: process "/bin/sh -c pip install -r /requirements.txt --no-warn-script-location" did not complete successfully: exit code: 1
Using a version of pip less than 24.1 or celery==5.2.1 seems to solve the issue.
Issue while trying to install celery==5.2.0 in Docker build process. The installation fails due to invalid metadata in the specified version of Celery. The error message indicates that the metadata has an unexpected character which prevents the installation from proceeding.
Using a version of
pip
less than 24.1 orcelery==5.2.1
seems to solve the issue.