python-gssapi 1.8.2-1ubuntu2 regression: ModuleNotFoundError: No module named 'gssapi.raw'

Bug #2064089 reported by Martin Pitt
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-gssapi (Ubuntu)
New
Undecided
Unassigned
Noble
Invalid
Undecided
Unassigned

Bug Description

The recent no-change rebuild in https://launchpad.net/ubuntu/+source/python-gssapi/1.8.2-1ubuntu2 regressed. With -1ubuntu1, the import works:

  python3 -c 'import gssapi'

but with -1ubuntu2, it crashes with

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/gssapi/__init__.py", line 31, in <module>
    from gssapi.raw.types import NameType, RequirementFlag, AddressType # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gssapi/raw/__init__.py", line 45, in <module>
    importlib.import_module('{0}._enum_extensions.{1}'.format(__name__, name))
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "gssapi/raw/_enum_extensions/ext_dce.pyx", line 3, in init gssapi.raw._enum_extensions.ext_dce
ModuleNotFoundError: No module named 'gssapi.raw'

which is a bit weird, as indeed the rebuilt deb lost e.g.

  /usr/lib/python3/dist-packages/gssapi/raw/types.cpython-311-x86_64-linux-gnu.so

and related *311* files, but the *312* ones are still present. But Python *is* 3.12:

# python3 --version
Python 3.12.3

This breaks e.g. ipa-client-install (right away, no arguments or IPA setup needed).

So there's something subtle going on, but this really should be removed from noble-proposed now that noble is stable.

Revision history for this message
Martin Pitt (pitti) wrote :

This was "fixed" in noble by clearing out noble-proposed, thanks! That took care of the worst fallout.

Changed in python-gssapi (Ubuntu Noble):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.