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

Warn the user on Python 3.12 #496

Merged
merged 1 commit into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading