Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1902382 - python-matplotlib fails to build with Python 3.10: wx.Size(<float>, <float>): TypeError: Size(): arguments did not match any overloaded call: argument 1 has unexpected type 'numpy.float64'
Summary: python-matplotlib fails to build with Python 3.10: wx.Size(<float>, <float>):...
Alias: None
Product: Fedora
Classification: Fedora
Component: python-matplotlib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
Depends On: 1930556
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2020-11-28 10:08 UTC by Miro Hrončok
Modified: 2021-02-23 07:08 UTC (History)
9 users (show)

Fixed In Version: python-matplotlib-3.4.0~rc1-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-02-23 07:08:04 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github matplotlib matplotlib pull 19052 0 None closed Always pass integers to wx.Size. 2021-02-18 07:31:53 UTC
Github matplotlib matplotlib pull 19395 0 None closed wx: Use integers in more places 2021-02-18 07:31:53 UTC

Description Miro Hrončok 2020-11-28 10:08:29 UTC
python-matplotlib fails to build with Python 3.10.0a2.

Traceback (most recent call last):
  File "<string>", line 23, in <module>
  File "/builddir/build/BUILDROOT/python-matplotlib-3.3.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages/matplotlib/", line 687, in figure
    figManager = new_figure_manager(num, figsize=figsize,
  File "/builddir/build/BUILDROOT/python-matplotlib-3.3.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages/matplotlib/", line 315, in new_figure_manager
    return _backend_mod.new_figure_manager(*args, **kwargs)
  File "/builddir/build/BUILDROOT/python-matplotlib-3.3.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages/matplotlib/backends/", line 1680, in new_figure_manager
    return super().new_figure_manager(num, *args, **kwargs)
  File "/builddir/build/BUILDROOT/python-matplotlib-3.3.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages/matplotlib/", line 3494, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "/builddir/build/BUILDROOT/python-matplotlib-3.3.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages/matplotlib/backends/", line 1684, in new_figure_manager_given_figure
    frame = cls._frame_class(num, figure)
  File "/builddir/build/BUILDROOT/python-matplotlib-3.3.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages/matplotlib/backends/", line 925, in __init__
    self.canvas.SetInitialSize(wx.Size(fig.bbox.width, fig.bbox.height))
TypeError: Size(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 1 has unexpected type 'numpy.float64'
FAILED[toolbar2-wx] - ...

Maybe the numbers need to be rounded to integers first? See for example which was also necessary on Python 3.10.

For the build logs, see:

For all our attempts to build python-matplotlib with Python 3.10, see:

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Elliott Sales de Andrade 2021-01-28 22:29:10 UTC
Unfortunately, it looks like either more things changed, or I missed something, so this won't be fixed with 3.3.4.

Comment 2 Ben Cotton 2021-02-09 15:28:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Note You need to log in before you can comment on or make changes to this bug.