Dear PyNeb community,
I would like to report a compatibility issue involving PyNeb, Astropy, and NumPy ≥ 2.4.0. This issue was identified by my student, Alondra Vega, while setting up a fresh environment.
With NumPy 2.4.0 (released December 2025), the function numpy.in1d has been removed. When attempting to import PyNeb:
import pyneb as pn
the import fails with the following error:
AttributeError: module 'numpy' has no attribute 'in1d'
The traceback indicates that the issue does not originate directly within PyNeb itself, but occurs during the import chain.
It may be worth considering one of the following:
Adding an upper bound on NumPy (e.g., <2.4) in the PyNeb requirements,
Ensuring compatibility with more recent Astropy versions,
Or conditionally importing WCS only when required.
We hope this report is helpful.
Regards,
Eduardo