Bug 2336966 - python-periodictable: FTBFS in Fedora Rawhide: AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.
Summary: python-periodictable: FTBFS in Fedora Rawhide: AttributeError: `np.NaN` was r...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-periodictable
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Antonio T. sagitter
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 16:16 UTC by Karolina Surma
Modified: 2025-01-10 20:05 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-01-10 20:05:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-periodictable pull-request 1 0 None None None 2025-01-10 16:42:46 UTC

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

Version-Release number of selected component (if applicable):
1.6.1-10.fc41

Steps to Reproduce:
koji build --scratch f42 python-periodictable-1.6.1-10.fc41.src.rpm

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

Reproducible: Always

Actual Results:  
___________________ ERROR collecting periodictable/fasta.py ____________________
periodictable/fasta.py:231: in <module>
    H2O_SLD = neutron_sld("H2O")[0]
periodictable/nsf.py:993: in neutron_sld
    return neutron_scattering(*args, **kw)[0]
periodictable/util.py:96: in _require_kwds
    return function(*args, **kw)
periodictable/nsf.py:888: in neutron_scattering
    if not element.neutron.has_sld():
periodictable/core.py:110: in getfn
    loader()
periodictable/__init__.py:102: in _load_neutron
    nsf.init(elements)
periodictable/nsf.py:547: in init
    b_c = nsf.b_c if nsf.b_c is not None else np.NaN
/usr/lib64/python3.13/site-packages/numpy/__init__.py:400: in __getattr__
    raise AttributeError(
E   AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.


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