Bug 2336933

Summary: plplot: FTBFS in Fedora Rawhide: TypeError: 'numpy.float64' object cannot be interpreted as an integer
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: plplotAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: orion, scitech-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/plplot
Whiteboard:
Fixed In Version: plplot-5.15.0-75.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-12 00:19:56 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 14:51:35 UTC
Description of problem:
Package plplot fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
5.15.0-73.fc42

Steps to Reproduce:
koji build --scratch f42 plplot-5.15.0-73.fc42.src.rpm

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

Reproducible: Always

Actual Results:  
 2/29 Test  #5: examples_python ..................***Failed    1.21 sec
Testing front-end python
x00
x01
x02
x03
x04
x05
x06
x07
x08
Traceback (most recent call last):
  File "/builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/examples/python/x08", line 37, in <module>
    x08.main(w)
    ~~~~~~~~^^^
  File "/builddir/build/BUILD/plplot-5.15.0-build/plplot-5.15.0/redhat-linux-build/examples/python/x08.py", line 107, in main
    square_root = sqrt(1. - min(1., ((double(i) - x0)/a)**2))
                            ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/site-packages/numpy/_core/fromnumeric.py", line 3302, in min
    return _wrapreduction(a, np.minimum, 'min', axis, None, out,
                          keepdims=keepdims, initial=initial, where=where)
  File "/usr/lib64/python3.14/site-packages/numpy/_core/fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'numpy.float64' object cannot be interpreted as an integer

Comment 1 Fedora Update System 2025-01-12 00:14:07 UTC
FEDORA-2025-1cf54e18f0 (plplot-5.15.0-75.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-1cf54e18f0

Comment 2 Fedora Update System 2025-01-12 00:19:56 UTC
FEDORA-2025-1cf54e18f0 (plplot-5.15.0-75.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.