gpt-engineer: Docker build is broken
Expected Behavior
After running docker build --rm -t gpt-engineer -f docker/Dockerfile . I should have a runnable container.
Current Behavior
Unable to build the container due to PyArrow and CMake issues.
Failure Information
Failure Logs
creating /tmp/pip-install-673hp2i9/pyarrow_d35c22e7f3e947faaa29331bd28d4241/build/temp.linux-x86_64-cpython-311
43.03 -- Running cmake for PyArrow
43.03 cmake -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-673hp2i9/pyarrow_d35c22e7f3e947faaa29331bd28d4241/build/lib.linux-x86_64-cpython-311/pyarrow -DPYTHON_EXECUTABLE=/usr/local/bin/python -DPython3_EXECUTABLE=/usr/local/bin/python -DPYARROW_CXXFLAGS= -DPYARROW_BUILD_CUDA=off -DPYARROW_BUILD_SUBSTRAIT=off -DPYARROW_BUILD_FLIGHT=off -DPYARROW_BUILD_GANDIVA=off -DPYARROW_BUILD_ACERO=off -DPYARROW_BUILD_DATASET=off -DPYARROW_BUILD_ORC=off -DPYARROW_BUILD_PARQUET=off -DPYARROW_BUILD_PARQUET_ENCRYPTION=off -DPYARROW_BUILD_AZURE=off -DPYARROW_BUILD_GCS=off -DPYARROW_BUILD_S3=off -DPYARROW_BUILD_HDFS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release /tmp/pip-install-673hp2i9/pyarrow_d35c22e7f3e947faaa29331bd28d4241
43.03 error: command 'cmake' failed: No such file or directory
43.03 [end of output]
43.03
43.03 note: This error originates from a subprocess, and is likely not a problem with pip.
43.03 ERROR: Failed building wheel for pyarrow
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 30 (3 by maintainers)
Perfect! We are now looking into testing this on Linux, Mac, and Windows and we’ll see how to fix it for everyone. I’ll leave this issue open for now just as a reminder to @zigabrencic and me to follow-up on this for other platforms.
Glad it worked for you @t6tv8e! Thanks, @zigabrencic and @ErikBjare for helping out!
The issue is with cmake missing in the container, not the host system.
Seems the Dockerfile needs:
RUN apk add --update build-baseor similar.Here are the files. In the
pyproject.tomlI only addedlangchain-community ="0.2.0"and inDockerfile-COPY --from=builder /usr/bin /usr/binDockerifle
pyproject.toml
@zigabrencic @viborc
That worked 👌
Okay, thanks for your time already in any case