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

Add Python 3.12 to the CI #230

Open
28 of 32 tasks
nzw0301 opened this issue Dec 20, 2023 · 12 comments · Fixed by #253
Open
28 of 32 tasks

Add Python 3.12 to the CI #230

nzw0301 opened this issue Dec 20, 2023 · 12 comments · Fixed by #253
Labels
feature Change that does not break compatibility, but affects the public interfaces of examples. stale Exempt from stale bot labeling.

Comments

@nzw0301
Copy link
Member

nzw0301 commented Dec 20, 2023

Motivation

Sub-task of optuna/optuna#5000.

Description

see the title of this issue.

Alternatives (optional)

Additional context (optional)

Here is a list of the target yaml files under .github/workflows.

  • aim.yml
  • allennlp.yml
  • base.yml
  • catboost.yml
  • chainer.yml
  • checks.yml
  • dashboard.yml
  • dask.yml
  • dask_ml.yml
  • fastai.yml
  • haiku.yml
  • hiplot.yml
  • hydra.yml
  • keras.yml
  • lightgbm.yml
  • mlflow.yml
  • multi_objective.yml
  • mxnet.yml
  • pytorch.yml
  • ray.yml
  • rl.yml
  • samplers.yml
  • skimage.yml
  • sklearn.yml
  • stale.yml
  • tensorboard.yml
  • tensorflow.yml
  • terminator.yml
  • tfkeras.yml
  • visualization.yml
  • wandb.yml
  • xgboost.yml

I've checked listings addressed by #214 and have not removed the deprecated library's examples yet.

@nzw0301 nzw0301 added the feature Change that does not break compatibility, but affects the public interfaces of examples. label Dec 20, 2023
Copy link

github-actions bot commented Jan 3, 2024

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Jan 3, 2024
@Alnusjaponica
Copy link
Collaborator

Following libraries have been already archived will not support python 3.12.

  • allennlp
  • chainer
  • mxnet

Following libraries does not (officially) support python 3.12 for now.

Following libraries have newly supported python 3.12 recently.

@not522 not522 reopened this Mar 28, 2024
@github-actions github-actions bot removed the stale Exempt from stale bot labeling. label Mar 28, 2024
Copy link

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Apr 11, 2024
@Alnusjaponica Alnusjaponica removed the stale Exempt from stale bot labeling. label Apr 15, 2024
Copy link

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Apr 29, 2024
@Alnusjaponica Alnusjaponica removed the stale Exempt from stale bot labeling. label May 3, 2024
Copy link

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label May 19, 2024
@nzw0301 nzw0301 removed the stale Exempt from stale bot labeling. label May 20, 2024
Copy link

github-actions bot commented Jun 3, 2024

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Jun 3, 2024
@nzw0301 nzw0301 removed the stale Exempt from stale bot labeling. label Jun 4, 2024
Copy link

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Jun 20, 2024
@Alnusjaponica Alnusjaponica removed the stale Exempt from stale bot labeling. label Jun 21, 2024
Copy link

github-actions bot commented Jul 7, 2024

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Jul 7, 2024
@nzw0301 nzw0301 removed the stale Exempt from stale bot labeling. label Jul 13, 2024
Copy link

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Jul 30, 2024
@Alnusjaponica Alnusjaponica removed the stale Exempt from stale bot labeling. label Jul 31, 2024
@nzw0301
Copy link
Member Author

nzw0301 commented Aug 3, 2024

I investigated the current status of the unaddressed items above partially with my local env (mac):

tfkeras

It works w/ python 3.12 but an example shows a warning message every trial as follows:

python tfkeras/tfkeras_integration.py

...
2024-08-03 14:53:51.516660: W tensorflow/core/kernels/data/cache_dataset_ops.cc:913] The calling iterator did not fully read the dataset being cached. In order to avoid unexpected truncation of the dataset, the partially cached contents of the dataset  will be discarded. This can happen if you have an input pipeline similar to `dataset.cache().take(k).repeat()`. You should use `dataset.take(k).cache().repeat()` instead.

Similarly, tfkeras/tfkeras_simple.py shows warning message at the first model construction:

python tfkeras/tfkeras_simple.py
[I 2024-08-03 14:59:38,046] A new study created in memory with name: no-name-b1748d29-9666-4ad1-96d8-2d95c2ea4b00
/opt/homebrew/Caskroom/miniconda/base/envs/optuna-312/lib/python3.12/site-packages/keras/src/layers/convolutional/base_conv.py:107: UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in the model instead.
  super().__init__(activity_regularizer=activity_regularizer, **kwargs)

ray

Still ongoing task according to ray-project/ray#40211.

lightgbm

It supports Python 3.12. But similar to thetfkeras case, an example shows a warning message as follows:

python lightgbm/lightgbm_tuner_cv.py

[I 2024-08-03 15:04:28,351] A new study created in memory with name: no-name-a3244a73-6d43-41e9-954e-1f3494e21ac4
feature_fraction, val_score: inf:   0%|                                                  | 0/7 [00:00<?, ?it/s]
/optuna-312/lib/python3.12/site-packages/sklearn/model_selection/_split.py:91: UserWarning: The groups parameter is ignored by KFold
  warnings.warn(
Training until validation scores don't improve for 100 rounds

and terminator example stopped at the trial 19 locally.

Copy link

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Aug 19, 2024
@nzw0301 nzw0301 removed the stale Exempt from stale bot labeling. label Aug 20, 2024
Copy link

github-actions bot commented Sep 3, 2024

This issue has not seen any recent activity.

@github-actions github-actions bot added the stale Exempt from stale bot labeling. label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Change that does not break compatibility, but affects the public interfaces of examples. stale Exempt from stale bot labeling.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants