Skip to content

Commit

Permalink
Warn the user on 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 31, 2023
1 parent 6dfdc55 commit 21018aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pysr/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pysr/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.16.6"
__version__ = "0.16.7"
__symbolic_regression_jl_version__ = "0.23.0"

0 comments on commit 21018aa

Please sign in to comment.