You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into a problem when building a Dockerfile. It seems to have to do with the underlying package xmlsec. I've tried several versions and still running into the problem
ARG PYTHON_VERSION=3.10-slim-bullseye
# define an alias for the specfic python version used in this file.
FROM --platform=linux/amd64 python:${PYTHON_VERSION} as python
RUN apt-get update && apt-get install --no-install-recommends -y \
libxmlsec1 libxmlsec1-dev libxml2 pkg-config
# Install pipenv
RUN pip install -U pip
RUN pip install xmlsec==1.3.13
# Python build stage
FROM python as python-build-stage
# Install apt packages
RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages
build-essential \
# psycopg2 dependencies
libpq-dev \
# Translations dependencies
gettext
# Requirements are installed here to ensure they will be cached.
COPY ./requirements .
# Create Python Dependency and Sub-Dependency Wheels.
RUN pip wheel --wheel-dir /usr/src/app/wheels --verbose \
-r dev.txt
Error trace:
Building wheel for xmlsec (pyproject.toml): started
Building wheel for xmlsec (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for xmlsec (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/__init__.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
running build_ext
building 'xmlsec' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/tmp
creating build/temp.linux-x86_64-cpython-310/tmp/pip-install-173l7zot
The text was updated successfully, but these errors were encountered:
Hi there,
Running into a problem when building a Dockerfile. It seems to have to do with the underlying package xmlsec. I've tried several versions and still running into the problem
Similar issue to: #318
Build command:
Error trace:
The text was updated successfully, but these errors were encountered: