From 21018aaceec7a3db422ab861ef91cbb019987a54 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Sun, 31 Dec 2023 02:35:42 +0000 Subject: [PATCH] Warn the user on 3.12 --- pysr/__init__.py | 9 +++++++++ pysr/version.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pysr/__init__.py b/pysr/__init__.py index 99c6a9742..1f2e9775d 100644 --- a/pysr/__init__.py +++ b/pysr/__init__.py @@ -1,3 +1,12 @@ +import sys +import warnings + +if sys.version_info >= (3, 12, 0): + warnings.warn( + "PySR experiences occassional segfaults with Python 3.12. " + + "Please use an earlier version of Python with PySR until this issue is resolved." + ) + from . import sklearn_monkeypatch from .deprecated import best, best_callable, best_row, best_tex, pysr from .export_jax import sympy2jax diff --git a/pysr/version.py b/pysr/version.py index 82a6f4dcb..be6e53b05 100644 --- a/pysr/version.py +++ b/pysr/version.py @@ -1,2 +1,2 @@ -__version__ = "0.16.6" +__version__ = "0.16.7" __symbolic_regression_jl_version__ = "0.23.0"