Bug 2336893 - 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.
Summary: python-photutils: FTBFS in Fedora Rawhide: DeprecationWarning: __array__ impl...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-photutils
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F42FTBFS PYTHON3.14 NUMPY2
TreeView+ depends on / blocked
 
Reported: 2025-01-10 10:01 UTC by Karolina Surma
Modified: 2025-02-10 11:07 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 11:07:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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