Skip to content

Commit

Permalink
pin h5py to 3.10.0
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
spolti committed Apr 16, 2024
1 parent 18f67f5 commit 48c04e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \
pip install --upgrade pip && \
pip install wheel && \
pip install grpcio && \
# pin to 3.10.0 to avoid error: libhdf5.so: cannot open shared object file: No such file or directory \
# if not version is set, it will install the 3.11.0 version which, seems that does not have the h5py dependencies \
# for arm yet.
pip install h5py==3.10.0 && \
pip install tensorflow

USER ${USER}
Expand Down

0 comments on commit 48c04e3

Please sign in to comment.