Bug 2210604

Summary: python-animatplot: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: python-animatplotAssignee: david08741
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: david08741, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-animatplot
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-31 13:55:15 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:

Description Orion Poplawski 2023-05-28 23:35:06 UTC
Description of problem:
Package python-animatplot fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.4.1-16.fc38

Steps to Reproduce:
koji build --scratch f39 python-animatplot-0.4.1-16.fc38.src.rpm

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

Reproducible: Always




_____________________ TestLineBlock.test_ragged_list_input _____________________

self = <tests.test_blocks.TestLineBlock object at 0x7f7c1fd30290>

    def test_ragged_list_input(self):
        x_data = [np.array([1, 2, 3]), np.array([1, 2, 3, 4])]
        y_data = [np.array([5, 6, 7]), np.array([4, 2, 9, 10])]
    
        with pytest.raises(ValueError) as err:
            line_block = amp.blocks.Line(y_data)
>       assert "Must specify x data explicitly" in str(err)
E       assert 'Must specify x data explicitly' in "<ExceptionInfo ValueError('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.') tblen=2>"
E        +  where "<ExceptionInfo ValueError('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.') tblen=2>" = str(<ExceptionInfo ValueError('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.') tblen=2>)

tests/test_blocks.py:146: AssertionError
___________________ TestLineBlock.test_bad_ragged_list_input ___________________

self = <tests.test_blocks.TestLineBlock object at 0x7f7c1fd30ad0>

    def test_bad_ragged_list_input(self):
>       x_data = np.array([np.array([1, 2, 3]), np.array([1, 2, 3, 4])])
E       ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.

tests/test_blocks.py:154: ValueError

Likely started with the change from numpy 1.23.5 to 1.24.1