optuna / optuna-examples

Examples for https://github.com/optuna/optuna
MIT License
673 stars 174 forks source link

Support Python 3.11 #164

Closed nzw0301 closed 9 months ago

nzw0301 commented 1 year ago

Motivation

Sub-task of https://github.com/optuna/optuna/issues/3964 for tracking this repo.

Description

Add python 3.11 to github action's version matrix. An example PR is https://github.com/optuna/optuna-examples/pull/160.

Alternatives (optional)

Additional context (optional)

I summarise the status of targets as follows:

Kaushik-Iyer commented 1 year ago

Are all of them done?

nzw0301 commented 1 year ago

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

github-actions[bot] commented 1 year ago

This issue has not seen any recent activity.

github-actions[bot] commented 1 year ago

This issue has not seen any recent activity.

hvy commented 1 year ago

tensorflow now supports 3.11, see https://github.com/optuna/optuna/issues/3964#issuecomment-1501446648

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.

github-actions[bot] commented 1 year ago

This issue has not seen any recent activity.

github-actions[bot] commented 1 year ago

This issue has not seen any recent activity.

Alnusjaponica commented 1 year ago

It seems Python 3.11 is now supported by tensorflow. See https://github.com/tensorflow/tensorflow/issues/58032 for more detail.

Alnusjaponica commented 1 year ago

Same as PyTorch(https://github.com/pytorch/pytorch/issues/86566) and Numba (https://github.com/numba/numba/issues/8304)

github-actions[bot] commented 1 year ago

This issue has not seen any recent activity.

Alnusjaponica commented 11 months ago

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.~

Alnusjaponica commented 11 months ago

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 https://github.com/Alnusjaponica/optuna-examples/pull/1.

github-actions[bot] commented 10 months ago

This issue has not seen any recent activity.

nzw0301 commented 10 months ago

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

github-actions[bot] commented 9 months ago

This issue has not seen any recent activity.

not522 commented 9 months ago

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