heavyai/pymapd

pymapd installation in Docker fails due to pyarrow

marvin-hansen opened this issue · 1 comments

Version: 0.21 and 0.22

When trying to dockerize a python application that uses pymapd, I still have to find a way to actually build the container without error. Essentially, pyarrow fails to install. I have tried about any pyarrow version out there, but each failed to build. Error below.

Any idea how to install pymapd when building a docker container?

Thanks

Error

running build_ext creating build/temp.linux-x86_64-3.8 -- Running cmake for pyarrow cmake -DPYTHON_EXECUTABLE=/usr/local/bin/python -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release /tmp/p ip-install-81qx66d2/pyarrow error: command 'cmake' failed with exit status 1 ERROR: Failed building wheel for pyarrow

Dockerfile

``FROM python:3

ADD src /

ADD requirements.txt /

CMD 'python -m pip install --upgrade pip'

RUN pip install -r requirements.txt

CMD [ "python", "./src/Server.py" ]``

Requirements.txt
#pyarrow==0.13.0 # numpy>=1.18 pymapd==0.21.0 pandas>=1.0 ...

SOLVED: Can only build against Python ~3.7 but not with the latest.