[Bug 2146376] Re: FTBFS 5.13.1-1 because of annotation resolution in sphinx build

Launchpad Bug Tracker 2146376 at bugs.launchpad.net
Sat Mar 28 14:41:32 UTC 2026


This bug was fixed in the package python-keystoneauth1 - 5.13.1-1ubuntu1

---------------
python-keystoneauth1 (5.13.1-1ubuntu1) resolute; urgency=medium

  * d/p/fix-py314-annotation-shadowing.patch: Fix Sphinx autodoc crash
    on Python 3.14 (LP: #2146376).

 -- Guillaume Boutry <guillaume.boutry at canonical.com>  Wed, 25 Mar 2026
22:01:07 +0100

** Changed in: python-keystoneauth1 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-keystoneauth1 in Ubuntu.
https://bugs.launchpad.net/bugs/2146376

Title:
  FTBFS 5.13.1-1 because of annotation resolution in sphinx build

Status in python-keystoneauth1 package in Ubuntu:
  Fix Released

Bug description:
  python-keystoneauth1 5.13.1-1 fails to build from source on resolute
  (Python 3.14):

    File "/<<PKGBUILDDIR>>/keystoneauth1/access/access.py", line 72, in __annotate__
        def service_catalog(self) -> service_catalog.ServiceCatalog:
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'property' object has no attribute 'ServiceCatalog'
    make[1]: *** [debian/rules:30: override_dh_sphinxdoc] Error 2

  Python 3.14 (PEP 649) changes how annotations are evaluated. The service_catalog property on the AccessInfo class shadows the service_catalog module import, so when Sphinx autodoc resolves the return type annotation service_catalog.ServiceCatalog,
     it finds the property instead of the module.

  Build log: https://launchpadlibrarian.net/852480446/buildlog_ubuntu-
  resolute-amd64.python-keystoneauth1_5.13.1-1_BUILDING.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-keystoneauth1/+bug/2146376/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list