Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Python version to 3.10 #2057

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/earlystopping/medianstop/v1beta1/Dockerfile
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
@@ -1,4 +1,4 @@
psutil==5.8.0
psutil==5.9.4
Copy link
Member Author

@tenzen-y tenzen-y Dec 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To resolve the following error, we must upgrade the psutil version.

...
#0 98.35       C compiler or Python headers are not installed on this system. Try to run:
#0 98.35       sudo apt-get install gcc python3-dev
#0 98.35       error: command 'gcc' failed: No such file or directory
#0 98.35       [end of output]
#0 98.35   
#0 98.35   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 98.36 error: legacy-install-failure
#0 98.36 
#0 98.36 × Encountered error while trying to install package.
#0 98.36 ╰─> psutil
...

ref: giampaolo/psutil#2165

rfc3339>=6.2
grpcio==1.41.1
googleapis-common-protos==1.6.0
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/hyperband/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/hyperopt/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/nas/darts/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/nas/enas/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/optuna/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO /bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/pbt/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO /bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggestion/skopt/v1beta1/Dockerfile
Expand Up @@ -6,7 +6,7 @@ ENV GRPC_HEALTH_PROBE_VERSION v0.4.11
RUN wget -qO /bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-${TARGETARCH} \
&& chmod +x /bin/grpc_health_probe

FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/katib
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-guide.md
Expand Up @@ -16,7 +16,7 @@ see the following user guides:
- [Docker](https://docs.docker.com/) (20.10 or later)
- [Docker Buildx](https://docs.docker.com/build/buildx/) (0.8.0 or later)
- [Java](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html) (8 or later)
- [Python](https://www.python.org/) (3.9 or later)
- [Python](https://www.python.org/) (3.10 or later)
- [kustomize](https://kustomize.io/) (4.0.5 or later)

## Build from source code
Expand Down
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ENV TARGET_DIR /opt/darts-cnn-cifar10

Expand Down
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV TARGET_DIR /opt/enas-cnn-cifar10
Expand Down
2 changes: 1 addition & 1 deletion examples/v1beta1/trial-images/mxnet-mnist/Dockerfile
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH
ENV LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/opt/arm/armpl_22.0.2_gcc-11.2/lib"
Expand Down
2 changes: 1 addition & 1 deletion examples/v1beta1/trial-images/pytorch-mnist/Dockerfile.cpu
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ADD examples/v1beta1/trial-images/pytorch-mnist /opt/pytorch-mnist

Expand Down
2 changes: 1 addition & 1 deletion examples/v1beta1/trial-images/simple-pbt/Dockerfile
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ADD examples/v1beta1/trial-images/simple-pbt /opt/pbt

Expand Down
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion test/unit/v1beta1/requirements.txt
@@ -1,2 +1,2 @@
grpcio-testing==1.41.1
pytest==5.1.2
pytest==7.2.0