Bug 2336893

Summary: python-photutils: FTBFS in Fedora Rawhide: DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-photutilsAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-photutils
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 11:07:27 UTC Type: ---
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:    
Bug Blocks: 2300528, 2322407, 2332159    

Description Karolina Surma 2025-01-10 10:01:54 UTC
Description of problem:
Package python-photutils fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.11.0-5.fc42

Steps to Reproduce:
koji build --scratch f42 python-photutils-1.11.0-5.fc42.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-photutils

Reproducible: Always

Actual Results:  
_______________________________ test_mask_array ________________________________

    def test_mask_array():
        mask_data = np.ones((10, 10))
        bbox = BoundingBox(5, 15, 5, 15)
        mask = ApertureMask(mask_data, bbox)
>       data = np.array(mask)
E       DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments. To learn more, see the migration guide https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword


This has started to happen since the numpy 2 update.