MilesCranmer commited on
Commit
f5811bc
2 Parent(s): 6dfdc55 21018aa

Merge pull request #496 from MilesCranmer/warn-on-312

Browse files
Files changed (2) hide show
  1. pysr/__init__.py +9 -0
  2. pysr/version.py +1 -1
pysr/__init__.py CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  from . import sklearn_monkeypatch
2
  from .deprecated import best, best_callable, best_row, best_tex, pysr
3
  from .export_jax import sympy2jax
 
1
+ import sys
2
+ import warnings
3
+
4
+ if sys.version_info >= (3, 12, 0):
5
+ warnings.warn(
6
+ "PySR experiences occassional segfaults with Python 3.12. "
7
+ + "Please use an earlier version of Python with PySR until this issue is resolved."
8
+ )
9
+
10
  from . import sklearn_monkeypatch
11
  from .deprecated import best, best_callable, best_row, best_tex, pysr
12
  from .export_jax import sympy2jax
pysr/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.16.6"
2
  __symbolic_regression_jl_version__ = "0.23.0"
 
1
+ __version__ = "0.16.7"
2
  __symbolic_regression_jl_version__ = "0.23.0"