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

Python Alpine and Pyarrow #43731

Closed
sfc-gh-aivanou opened this issue Aug 16, 2024 · 1 comment
Closed

Python Alpine and Pyarrow #43731

sfc-gh-aivanou opened this issue Aug 16, 2024 · 1 comment

Comments

@sfc-gh-aivanou
Copy link

Describe the bug, including details regarding any error messages, version, and platform.

Does anyone know why pip install pyarrow does not work with python:3.10-alpine docker image?

E.g. this simple image:

FROM python:3.10-alpine

RUN apk add build-base linux-headers
RUN pip install --no-cache-dir --upgrade pip
RUN pip install cmake
RUN pip install pyarrow

ENTRYPOINT ["tail"]
CMD ["-f","/dev/null"]

Fails with

13.92       copying pyarrow/tests/data/feather/v0.17.0.version.2-compression.lz4.feather -> build/lib.linux-x86_64-cpython-310/pyarrow/tests/data/feather
13.92       running build_ext
13.92       creating /tmp/pip-install-x7hld2to/pyarrow_7d094121e229462db5f571453b46aa62/build/temp.linux-x86_64-cpython-310
13.92       -- Running cmake for PyArrow
13.92       cmake -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-x7hld2to/pyarrow_7d094121e229462db5f571453b46aa62/build/lib.linux-x86_64-cpython-310/pyarrow -DPYTHON_EXECUTABLE=/usr/local/bin/python -DPython3_EXECUTABLE=/usr/local/bin/python -DPYARROW_CXXFLAGS= -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release /tmp/pip-install-x7hld2to/pyarrow_7d094121e229462db5f571453b46aa62
13.92       Traceback (most recent call last):
13.92         File "/usr/local/bin/cmake", line 5, in <module>
13.92           from cmake import cmake
13.92       ModuleNotFoundError: No module named 'cmake'
13.92       error: command '/usr/local/bin/cmake' failed with exit code 1
13.92       [end of output]

Component(s)

Developer Tools, Python

@assignUser
Copy link
Member

assignUser commented Aug 17, 2024

Please see #18036, we don't publish musl wheels at the moment.
For building from source in docker see #39846.

@assignUser assignUser closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants