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

pandas 2.2.1 install fails in 3.13.0 using python:3-alpine3.19 docker image #125108

Closed
andreish opened this issue Oct 8, 2024 · 3 comments
Closed
Labels
3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error

Comments

@andreish
Copy link

andreish commented Oct 8, 2024

Bug report

Bug description:

see Dockerfile to reproduce here:
docker-library/python#975

FROM python:3-alpine3.19

RUN apk add --no-cache bash curl wget python3-dev  alpine-sdk && mkdir -p /srv
WORKDIR /srv
RUN python -m venv .venv
RUN source .venv/bin/activate && pip install pandas==2.2.1

error log:

143.3       cc -Ipandas/_libs/json.cpython-313-x86_64-linux-musl.so.p -Ipandas/_libs -I../../pandas/_libs -I../../../../pip-build-env-y21n8_kb/overlay/lib/python3.13/site-packages/numpy/core/include -I../../pandas/_libs/include -I/usr/local/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -fPIC -MD -MQ pandas/_libs/json.cpython-313-x86_64-linux-musl.so.p/src_vendored_ujson_python_JSONtoObj.c.o -MF pandas/_libs/json.cpython-313-x86_64-linux-musl.so.p/src_vendored_ujson_python_JSONtoObj.c.o.d -o pandas/_libs/json.cpython-313-x86_64-linux-musl.so.p/src_vendored_ujson_python_JSONtoObj.c.o -c ../../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
143.3       In file included from /usr/include/fortify/string.h:26,
143.3                        from ../../pandas/_libs/include/pandas/portable.h:12,
143.3                        from ../../pandas/_libs/include/pandas/vendored/ujson/lib/ultrajson.h:55,
143.3                        from ../../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:41:
143.3       /usr/include/fortify/stdlib.h:42:1: error: 'realpath' undeclared here (not in a function)
143.3          42 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
143.3             | ^~~~~~~~~~~
143.3       In file included from /usr/local/include/python3.13/Python.h:38,
143.3                        from ../../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:43:
143.3       /usr/include/fortify/stdlib.h: In function 'realpath':
143.3       /usr/include/fortify/stdlib.h:45:2: error: #error PATH_MAX unset. A fortified realpath will not work.
143.3          45 | #error PATH_MAX unset. A fortified realpath will not work.
143.3             |  ^~~~~

it used to work with PYTHON_VERSION 3.13.0rc3 .

CPython versions tested on:

3.13

Operating systems tested on:

Linux

@andreish andreish added the type-bug An unexpected behavior, bug, or error label Oct 8, 2024
@skirpichev skirpichev added the 3.13 bugs and security fixes label Oct 8, 2024
@ZeroIntensity
Copy link
Member

Hi, this should get reported to pandas, not to us.

@ZeroIntensity ZeroIntensity closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
@skirpichev
Copy link
Member

@ZeroIntensity, this looks like a regression, not?

@ZeroIntensity
Copy link
Member

It might be, but the error is from pandas' header files, so there's nothing that we can do about this. If there was a C API regression somewhere, then they should report that to us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants