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 bugzilla.redhat.com.

Bug 1838207

Summary: python-matplotlib fails to build with numpy 1.19.x
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-matplotlibAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, dominik, gwync, jonathan.underwood, mhroncok, mplch, paulo.cesar.pereira.de.andrade, python-sig, quantum.analyst, thibault.north, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-matplotlib-3.3.0-0.1.rc1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-30 05:42:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1848152    
Bug Blocks: 1803234, 1509657, 1838442    

Description Miro Hrončok 2020-05-20 16:07:50 UTC
python-matplotlib fails to build with Python 3.9.0b1.

We have built numpy 1.19.0rc1 from dist git. This built hasn't happened yet in Fedora rawhide, but eventually will. Seems like matplotlib fails with a lot of tests because of a new deprecation warning:

numpy.VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01399175-python-matplotlib/

For all our attempts to build python-matplotlib with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-matplotlib/

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.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
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 Miro Hrončok 2020-05-20 16:09:36 UTC
Setting the severity to high, because we'd like to proceed with Koji side tag rebuilds really soon.

I think we shall report this to upstream and than make the tests not fail on this.

Comment 2 Elliott Sales de Andrade 2020-05-20 19:47:40 UTC
This is already known upstream.

Comment 3 Miro Hrončok 2020-05-20 19:58:04 UTC
Thanks Elliott. Do we need that PR backported, or is filtering the warnings good for now?

Comment 4 Miro Hrončok 2020-05-21 11:59:39 UTC
numpy 1.19 was temporarily reverted, but I'm keeping this open for future reference

Comment 5 Miro Hrončok 2020-06-02 10:29:17 UTC
numpy 1.19 is back in.

Comment 6 Elliott Sales de Andrade 2020-06-04 07:37:18 UTC
There should be an rc out by next week.