Skip to content

Commit 75bc733

Browse files
author
Christopher Doris
committed
remove support for python 3.14
1 parent 582d59c commit 75bc733

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CondaPkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version = "<=julia"
1010

1111
[deps.python]
1212
build = "**cpython**"
13-
version = ">=3.10,<4"
13+
version = ">=3.10,<3.14"
1414

1515
[dev.deps]
1616
matplotlib = ""

docs/src/faq.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# FAQ & Troubleshooting
22

3+
## [Why is Python 3.14 not supported?](@id faq-python-314)
4+
5+
Python has always had a mechanism for detecting recursion errors (stack overflows).
6+
The heuristics for this have been made stricter in Python 3.14, which means that any
7+
system which uses a non-standard stack and calls Python from it is likely to crash.
8+
Julia is such a system because each task has its own stack.
9+
10+
There are discussions among Python developers about how to make the situation better but
11+
for now, PythonCall is highly likely to crash when using Python 3.14, so for the time
12+
being it is not supported.
13+
14+
See the discussion and linked GitHub issue here:
15+
https://discuss.python.org/t/python-3-14-0-is-incompatible-with-stack-switching-systems-what-do-we-do/104880.
16+
317
## [Can I use PythonCall and PyCall together?](@id faq-pycall)
418

519
Yes, you can use both PyCall and PythonCall in the same Julia session. This is platform-dependent:

0 commit comments

Comments
 (0)