-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Issue with pip install in 3.12 slim #869
Comments
I do not think ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION} AS build
COPY ./requirements.txt .
RUN --mount=type=cache,target=/var/cache/buildkit/pip \
pip wheel --wheel-dir /wheels -r requirements.txt
FROM python:${PYTHON_VERSION}-slim
COPY requirements.txt ./
COPY --from=build /wheels /wheels
RUN --mount=type=cache,target=/var/cache/buildkit/pip \
pip install --find-links /wheels --no-index -r requirements.txt |
Getting the same issue for slim-bullseye, gcc doesn't work on 3.12 but does on the 3.11 image. |
Hello, I got the following issue related to `gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c src/pymssql/_mssql.c -o build/temp.linux-x86_64-cpython-312/src/pymssql/_mssql.o -DMSDBLIB ... Failed to build uamqp aiohttp pymssql failed to solve: process "/bin/sh -c pip3 install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1` |
I was able to build the application successfully on python:3-alpine but it would fail in the test phase.
Rolling back to 3.11-alpine has it successfully build and test though. |
Just wanted to confirm that 3.12 broke my builds with all sorts of rather cryptographic errors, rolled back to 3.11-slim and everything went back to normal. |
@sudhirbits It seems to be a known issue with |
See #862 (comment) and #882 (comment):
|
Apparently has less issues with gcc docker-library/python#869
Try and work around an issue aith gcc in the python armv7 images docker-library/python#869 (comment)
Hi I am using gitlab ci for build. which uses the python:slim image (which is currently version 3.12)
Building wheels for collected packages: aiohttp, frozenlist, multidict, yarl
Building wheel for aiohttp (pyproject.toml): started
Building wheel for aiohttp (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for aiohttp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [97 lines of output]
...
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/usr/local/include/python3.12 -c aiohttp/_websocket.c -o build/temp.linux-x86_64-cpython-312/aiohttp/_websocket.o
error: command 'gcc' failed: No such file or directory
[end of output]
Please note that using python:3.11-slim for the gitlab ci docker image solves the issue.
The text was updated successfully, but these errors were encountered: