Skip to content

Commit 03ec598

Browse files
committed
pin h5py tpo 3.10.0
chore: Fix arm build, while building with arm, it seems a new version of h5py was released, and this version seems to not have the required dep libhdf5.so, giving the error: `error: libhdf5.so: cannot open shared object file: No such file or directory` Pinning h5py to 3.10.0 fixes it for now. Signed-off-by: Spolti <[email protected]>
1 parent 18f67f5 commit 03ec598

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \
162162
pip install --upgrade pip && \
163163
pip install wheel && \
164164
pip install grpcio && \
165+
# pin to 3.10.0 to avoid error: libhdf5.so: cannot open shared object file: No such file or directory \
166+
# if not version is set, it will install the 3.11.0 version which, seems that does not have the h5py dependencies \
167+
# for arm yet.
168+
pip install h5py==3.10.0 && \
165169
pip install tensorflow
166170

167171
USER ${USER}

0 commit comments

Comments
 (0)