Bug 2250683 - astrometry fails to build with numpy 1.26: ModuleNotFoundError: No module named 'numpy.distutils'
Summary: astrometry fails to build with numpy 1.26: ModuleNotFoundError: No module nam...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: astrometry
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mattia Verga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-20 14:39 UTC by Karolina Surma
Modified: 2024-03-20 16:54 UTC (History)
5 users (show)

Fixed In Version: astrometry-0.94-4.fc40
Clone Of:
Environment:
Last Closed: 2024-03-20 16:54:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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