Hello,
I hit the same error after upgrading from Debian Bookworm to Trixie when
using https://packages.debian.org/trixie/python3-requests-kerberos via:
> from requests_kerberos import OPTIONAL, HTTPKerberosAuth
> session = requests.Session()
> session.auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)
File "/usr/lib/python3/dist-packages/requests_kerberos/kerberos_.py", line
246, in authenticate_user
auth_header = self.generate_request_header(response, host)
File "/usr/lib/python3/dist-packages/requests_kerberos/kerberos_.py", line
213, in generate_request_header
self._context[host] = ctx = spnego.client(
File "/usr/lib/python3/dist-packages/spnego/auth.py", line 169, in client
return _new_context(
File "/usr/lib/python3/dist-packages/spnego/auth.py", line 84, in _new_context
return proxy(
File "/usr/lib/python3/dist-packages/spnego/_gss.py", line 318, in __init__
raise ImportError("GSSAPIProxy requires the Python gssapi library: %s" %
GSSAPI_IMP_ERR)
ImportError: GSSAPIProxy requires the Python gssapi library: No module named
'krb5'
I tried to re-compile python3-krb5 on Trixie but this fails with:
Building with Python Limited API (Py_LIMITED_API=0x30b0000) for Stable ABI
...
src/krb5/_ccache.c:...: error: invalid use of incomplete typedef
'PyTypeObject'
src/krb5/_ccache.c:...: error: 'PY_VECTORCALL_ARGUMENTS_OFFSET' undeclared
...
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
dh_auto_build: error: pybuild --build -i python{version} -p 3.13
returned exit code 13
and many other "incomplete typedef" messages.
It's a little unsatisfying that this shall be broken for the whole
Trixie lifetime while the functionality worked in Bookworm.
Best regards
Florian
--
Florian Best
Open Source Software Engineer
Geschäftsführer: Peter H. Ganten, Stefan Gohmann
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876
Univention GmbH
Mary-Somerville-Str. 1
28359 Bremen
Germany / Deutschland
📞 Phone : +49 421 22232-0
🖶 Fax : +49 421 22232-99
✉️[email protected]
🌐https://www.univention.de /https://www.univention.com
Managing Directors: Peter H. Ganten, Stefan Gohmann
Local court: Amtsgericht Bremen
HRB 20755 / Steuer-Nr.: 71-597-02876
The information contained in this message is confidential or protected by law.
If you are not the intended recipient, please contact the sender and delete
this message.
Any unauthorized copying of this message or unauthorized distribution of the
information contained herein is prohibited.
Legally required information for business correspondence: Legal Information
Diese E-Mail enthält vertrauliche oder rechtlich geschützte Informationen.
Wenn Sie nicht der beabsichtigte Empfänger sind, informieren Sie bitte sofort
den Absender und löschen Sie diese E-Mail. Das unbefugte Kopieren dieser E-Mail
oder die unbefugte Weitergabe der enthaltenen Informationen ist nicht gestattet.
Gesetzliche Pflichtangaben für Geschäftskorrespondenz: Datenschutzerklärung