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

Bug #2064089 reported by Martin Pitt
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-gssapi (Ubuntu)
Fix Released
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
Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote (last edit ):

Indeed, upstream 1.8.3 fixes this. I'll get that into Debian and it can be merged into oracular from there.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-gssapi - 1.8.3-1

---------------
python-gssapi (1.8.3-1) unstable; urgency=medium

  [ Debian Janitor ]
  * Use versioned copyright format URI.
  * Update copyright file header to use current field names (Name ⇒
    Upstream-Name, Maintainer ⇒ Upstream-Contact)
  * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository-Browse.

  [ Colin Watson ]
  * Team upload.
  * New upstream release:
    - Fix Cython 3 compatibility (LP: #2064089).
  * Add missing "Files: *" to copyright file.

 -- Colin Watson <email address hidden> Fri, 17 May 2024 11:28:41 +0100

Changed in python-gssapi (Ubuntu):
status: New → Fix Released
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.