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
For Home Assistant we have an action to build custom musllinux wheels. Building pandas on armv7 started to fail recently with the following error:
[89/152] Compiling C object pandas/_libs/json.cpython-312-arm-linux-musleabihf.so.p/src_vendored_ujson_python_JSONtoObj.c.o
FAILED: pandas/_libs/json.cpython-312-arm-linux-musleabihf.so.p/src_vendored_ujson_python_JSONtoObj.c.o
cc -Ipandas/_libs/json.cpython-312-arm-linux-musleabihf.so.p -Ipandas/_libs -I../../pandas/_libs -I../../venv-312d/lib/python3.12/site-packages/numpy/core/include -I../../pandas/_libs/include -I/usr/local/include/python3.12 -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-312-arm-linux-musleabihf.so.p/src_vendored_ujson_python_JSONtoObj.c.o -MF pandas/_libs/json.cpython-312-arm-linux-musleabihf.so.p/src_vendored_ujson_python_JSONtoObj.c.o.d -o pandas/_libs/json.cpython-312-arm-linux-musleabihf.so.p/src_vendored_ujson_python_JSONtoObj.c.o -c ../../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
In file included from /usr/include/fortify/string.h:26,
from ../../pandas/_libs/include/pandas/portable.h:12,
from ../../pandas/_libs/include/pandas/vendored/ujson/lib/ultrajson.h:55,
from ../../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:41:
/usr/include/fortify/stdlib.h:42:1: error: 'realpath' undeclared here (not in a function)
42 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
| ^~~~~~~~~~~
In file included from /usr/local/include/python3.12/Python.h:23,
from ../../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:43:
/usr/include/fortify/stdlib.h: In function 'realpath':
/usr/include/fortify/stdlib.h:45:2: error: #error PATH_MAX unset. A fortified realpath will not work.
45 | #error PATH_MAX unset. A fortified realpath will not work.
| ^~~~~
I bisected the issue to #55150 (cc @WillAyd), in particular the change in pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:
Installation check
Platform
Linux-6.10.4-linuxkit-armv7l-with
Installation Method
pip install
pandas Version
pandas-3.0.0.dev0+1524.g23c497bb2f
Python Version
3.12.5
Installation Logs
For Home Assistant we have an action to build custom musllinux wheels. Building
pandas
onarmv7
started to fail recently with the following error:I bisected the issue to #55150 (cc @WillAyd), in particular the change in
pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
:It seems that, at least on the particular platform, the include order is important.
For the current main branch, it seems to be enough to modify this part:
pandas/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c
Lines 41 to 43 in 23c497b
The text was updated successfully, but these errors were encountered: