Bug 2250683

Summary: astrometry fails to build with numpy 1.26: ModuleNotFoundError: No module named 'numpy.distutils'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: astrometryAssignee: Mattia Verga <mattia.verga>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: astro-sig, ksurma, lupinix.fedora, mattia.verga, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: astrometry-0.94-4.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-20 16:54:00 UTC Type: Bug
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: 2231791, 2244836    

Description Karolina Surma 2023-11-20 14:39:40 UTC
astrometry fails to build with numpy 1.26:

python3 setup.py build_ext --inplace --force --build-temp .
Traceback (most recent call last):
  File "/builddir/build/BUILD/astrometry.net-0.94/libkd/setup.py", line 8, in <module>
    from numpy.distutils.misc_util import get_numpy_include_dirs
ModuleNotFoundError: No module named 'numpy.distutils'

See full build logs: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06660815-astrometry/builder-live.log.gz

Comment 1 Mattia Verga 2023-11-26 16:23:58 UTC
This is probably fixed upstream in https://github.com/dstndstn/astrometry.net/commit/7fff04d4b9f2e8bd0a2b2b567541a543a7a733dd
but no new release yet.
I will wait as long as possible for a new official release, otherwise I'll try to backport the fix.

Comment 2 Aoife Moloney 2024-02-15 23:05:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 3 Mattia Verga 2024-03-20 16:54:00 UTC
Sorry, this should have been fixed in astrometry-0.94-4.fc40 but I forgot to update this ticket.