Skip to content

Commit 1dd7251

Browse files
authored
Pin the NumPy version with v1.23.5 in some images (#2070)
Signed-off-by: Yuki Iwai <[email protected]> Signed-off-by: Yuki Iwai <[email protected]>
1 parent db72ce1 commit 1dd7251

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

cmd/suggestion/skopt/v1beta1/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
grpcio==1.41.1
22
cloudpickle==0.5.6
3-
numpy>=1.20.0
3+
# This is a workaround to avoid the following error.
4+
# AttributeError: module 'numpy' has no attribute 'int'
5+
# See more: https://github.com/numpy/numpy/pull/22607
6+
numpy==1.23.5
47
scikit-learn>=0.24.0
58
scipy>=1.5.4
69
forestci==0.3

examples/v1beta1/trial-images/mxnet-mnist/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get -y update \
2020
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
2121
/opt/mxnet-mnist/install-arm-performance-libraries.sh; \
2222
fi
23-
RUN pip install mxnet==1.9.1
23+
RUN pip install -r requirements.txt
2424
RUN chgrp -R 0 /opt/mxnet-mnist \
2525
&& chmod -R g+rwX /opt/mxnet-mnist
2626

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mxnet==1.9.1
2+
# This is a workaround to avoid the following error.
3+
# AttributeError: module 'numpy' has no attribute 'bool'
4+
# See more: https://github.com/numpy/numpy/pull/22607
5+
numpy==1.23.5

0 commit comments

Comments
 (0)