-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed as duplicate of#29157
Labels
Milestone
Description
Bug summary
Using the simplest Pyplot example as a minimal test case on Python 3.14 gives a RecursionError: maximum recursion depth exceeded
in path.py
.
Code for reproduction
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
Actual outcome
... trails way back ...
File "/home/bje/source/nemo/myenv/lib/python3.14/site-packages/matplotlib/path.py", line 285, in __deepcopy__
p = copy.deepcopy(super(), memo)
File "/usr/lib/python3.14/copy.py", line 157, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/lib/python3.14/copy.py", line 234, in _reconstruct
y = func(*args)
File "/usr/lib/python3.14/copy.py", line 233, in <genexpr>
args = (deepcopy(arg, memo) for arg in args)
~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/copy.py", line 138, in deepcopy
y = copier(memo)
File "/home/bje/source/nemo/myenv/lib/python3.14/site-packages/matplotlib/path.py", line 285, in __deepcopy__
p = copy.deepcopy(super(), memo)
RecursionError: maximum recursion depth exceeded
Expected outcome
The simple example should Just Work.
Additional information
No response
Operating system
Ubuntu 24.04
Matplotlib Version
3.10.3
Matplotlib Backend
WxAgg
Python version
Python 3.14.0rc1
Jupyter version
No response
Installation
pip