optuna/optuna-examples

Support Python 3.11

nzw0301 opened this issue ยท 16 comments

Motivation

Sub-task of optuna/optuna#3964 for tracking this repo.

Description

Add python 3.11 to github action's version matrix. An example PR is #160.

Alternatives (optional)

Additional context (optional)

I summarise the status of targets as follows:

Are all of them done?

@Kaushik-Iyer As in the issue description, we need to wait for third party libraries' python 3.11 support.

This issue has not seen any recent activity.

This issue has not seen any recent activity.

hvy commented

tensorflow now supports 3.11, see optuna/optuna#3964 (comment)

All examples blocked by tensorflow might be worth revisiting. While I haven't checked for possible errors, please let me mark this issue as contribution welcome for others to try picking it up. Please let me know if there are uncertainties.

This issue has not seen any recent activity.

This issue has not seen any recent activity.

It seems Python 3.11 is now supported by tensorflow. See tensorflow/tensorflow#58032 for more detail.

Same as PyTorch(pytorch/pytorch#86566) and Numba (numba/numba#8304)

This issue has not seen any recent activity.

It seems the development of MXNet has stopped before the release of python 3.11 and the test does not pass.
Therefore, it will be enough to close this issue after #214 is merged.

It is possible to run MXNet tests in Python 3.11, but it is necessary to install Numpy<1.24.0. To add to the Python 3.11 job to MXNet CI, reversing the order of the dependency list in mxnet/requirements.txt suffices. This is because Numpy>=1.24.0 is actually installed before running pip install -r requirements.txt in the CI, and it is necessary to reinstall Numpy<1.24.0 before the CI installs MXNet. For more details, please refer to Alnusjaponica#1.

This issue has not seen any recent activity.

FYI: MXNet has been archived since 18 Nov. 2023, so the incompatibility with numpy will not be addressed anymore on the MXNet side.

This issue has not seen any recent activity.

All except MXNet have been supported, and MXNet has finished development. Therefore, Python 3.11 support is considered complete. Thank you for your contributions!