Bug 2488357
| Summary: | python-astropy fails to build with Python 3.15: AttributeError: 'SkyCoord' object has no attribute 'x'. Did you mean '.cartesian.x' instead of '.x'? | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-astropy | Assignee: | Sergio Pascual <sergio.pasra> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | astro-sig, fede, orion, philip.wyett, sergio.pasra |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-06-19 12:08:27 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: | 2412434, 2433833 | ||
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.