Bug 2488357 - python-astropy fails to build with Python 3.15: AttributeError: 'SkyCoord' object has no attribute 'x'. Did you mean '.cartesian.x' instead of '.x'?
Summary: python-astropy fails to build with Python 3.15: AttributeError: 'SkyCoord' ob...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-astropy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-12 14:18 UTC by Karolina Surma
Modified: 2026-06-19 12:08 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-19 12:08:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-06-12 14:18:49 UTC
python-astropy fails to build with Python 3.15.0b2.

___________________________ [doctest] skycoord.rst ____________________________
869     <SkyCoord (ICRS): (x, y, z) in kpc
870         (1., 2., 3.)>
871 
872     >>> c.representation_type = 'cylindrical'
873     >>> c  # doctest: +FLOAT_CMP
874     <SkyCoord (ICRS): (rho, phi, z) in (kpc, deg, kpc)
875         (2.23606798, 63.43494882, 3.)>
876     >>> c.phi.to(u.deg)  # doctest: +FLOAT_CMP
877     <Angle 63.43494882 deg>
878     >>> c.x
Differences (unified diff with -expected +actual):
    @@ -1,3 +1,7 @@
     Traceback (most recent call last):
    -...
    -AttributeError: 'SkyCoord' object has no attribute 'x'
    +  File "<doctest skycoord.rst[88]>", line 1, in <module>
    +    c.x
    +  File "/builddir/build/BUILD/python-astropy-7.2.0-build/BUILDROOT/usr/lib64/python3.15/site-packages/astropy/coordinates/sky_coordinate.py", line 746, in __getattr__
    +    return self.__getattribute__(attr)
    +           ~~~~~~~~~~~~~~~~~~~~~^^^^^^
    +AttributeError: 'SkyCoord' object has no attribute 'x'. Did you mean '.cartesian.x' instead of '.x'?

https://docs.python.org/3.15/whatsnew/3.15.html

For our attempts to build python-astropy with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-astropy&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Sergio Pascual 2026-06-19 12:08:27 UTC
Fixed in https://koji.fedoraproject.org/koji/taskinfo?taskID=146806565


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