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

Unable to build docker container due to werkzeug 3.1.0 removing Python 2.8 support #5021

Open
ccben87 opened this issue Dec 2, 2024 · 0 comments

Comments

@ccben87
Copy link

ccben87 commented Dec 2, 2024

Unable to build docker container due to werkzeug 3.1.0 removing Python 2.8 support. I've also tried updating the Dockerfile at https://github.com/Netflix/lemur-docker/blob/master/lemur-build-docker/Dockerfile to use a custom Docker image of Ubuntu 20.04 as the base image which has Python 2.9 in it but this still fails. To get this to build, I had to edit the requirements.txt and adjust the werkzeug version to 3.0.6. Error log below:

476.8 INFO: pip is looking at multiple versions of lemur to determine which version is compatible with other requirements. This could take a while.
476.8 ERROR: Ignored the following versions that require a different python version: 1.9.0 Requires-Python >=3.9; 2.10.0 Requires-Python >=3.9; 2.10.1 Requires-Python >=3.9; 2.7.0 Requires-Python >=3.9; 2.7.0rc1 Requires-Python >=3.9; 3.0.0 Requires-Python >=3.9; 3.0.1 Requires-Python >=3.9; 3.0.2 Requires-Python >=3.9; 3.1.0 Requires-Python >=3.9; 3.1.1 Requires-Python >=3.9; 3.1.2 Requires-Python >=3.9; 3.1.3 Requires-Python >=3.9; 3.14.0 Requires-Python >=3.9; 3.14.1 Requires-Python >=3.9; 3.23.0 Requires-Python >=3.9; 3.23.1 Requires-Python >=3.9; 3.9.0 Requires-Python >=3.9; 3.9.2 Requires-Python >=3.9
476.8 ERROR: Could not find a version that satisfies the requirement werkzeug==3.1.3 (from lemur) (from versions: 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.4.1, 0.5, 0.5.1, 0.6, 0.6.1, 0.6.2, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.10, 0.10.1, 0.10.2, 0.10.4, 0.11, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.11.6, 0.11.7, 0.11.8, 0.11.9, 0.11.10, 0.11.11, 0.11.12, 0.11.13, 0.11.14, 0.11.15, 0.12, 0.12.1, 0.12.2, 0.13, 0.14, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4, 0.15.5, 0.15.6, 0.16.0, 0.16.1, 1.0.0rc1, 1.0.0, 1.0.1, 2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.0.0rc4, 2.0.0rc5, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.2.0a1, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6)
476.9 ERROR: No matching distribution found for werkzeug==3.1.3
------
failed to solve: process "/bin/sh -c apt-get update &&     apt-get -y --no-install-recommends upgrade &&     apt-get install -y --no-install-recommends libpq-dev curl build-essential locales libffi-dev libsasl2-dev libldap2-dev         dh-autoreconf git python3-dev python3-pip python3-venv python3-wheel nodejs npm &&     locale-gen en_US.UTF-8 && export LC_ALL=en_US.UTF-8 &&     npm config set registry https://registry.npmjs.org/ &&     npm install npm -g &&     echo \"Running with nodejs:\" && node -v &&     python3 -m venv /opt/venv &&     echo \"Running with python:\" && /opt/venv/bin/python3 -c 'import platform; print(platform.python_version())' &&     /opt/venv/bin/python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel &&     /opt/venv/bin/python3 -m pip install --no-cache-dir -e . &&     npm install --unsafe-perm &&     node_modules/.bin/gulp --cwd /opt/lemur build &&     node_modules/.bin/gulp --cwd /opt/lemur package &&     npm cache clean --force &&     rm -rf node_modules &&     python3 -c 'print(\" \\033[32m BUILDER DONE \\033[0m \")'" did not complete successfully: exit code: 1
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

1 participant