Skip to content

mic_token missing in the gssapi/raw/ext_dce.pyx file #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mkanoor opened this issue Feb 26, 2025 · 3 comments
Closed

mic_token missing in the gssapi/raw/ext_dce.pyx file #354

mkanoor opened this issue Feb 26, 2025 · 3 comments

Comments

@mkanoor
Copy link

mkanoor commented Feb 26, 2025

There is a discrepancy between the ext_dce.pyx and ext_dce.pyi file. The pyi file has the mic_token but the pyx is missing it.
This leads to a runtime error when the pyx gets used in here.

gssapi/raw/init.py

.tox/py312-unit/lib/python3.12/site-packages/gssapi/raw/__init__.py:118: in <module>
    from gssapi.raw.ext_iov_mic import *  # noqa
gssapi/raw/ext_iov_mic.pyx:31: in init gssapi.raw.ext_iov_mic
    ???
E   AttributeError: type object 'IOVBufferType' has no attribute 'mic_token'

If the pyi gets used instead it works.

@jborean93
Copy link
Contributor

Can you share what platform you build this library, what Python version, etc. The .pyi file is only used for type annotations and not actually run at runtime. The mic_token should have been loaded into the IOVBufferType when importing the _enum_extensions

OM_uint32 GSS_IOV_BUFFER_TYPE_MIC_TOKEN
.

Trying to reproduce this error will be the first step to solving the problem here.

@mkanoor
Copy link
Author

mkanoor commented Feb 26, 2025

@jborean93 this was happening when we run CI tests in GitHub its using the gituhub runners

Image: ubuntu-24.04
Version: 20250209.1.0

https://github.com/ansible/event-driven-ansible/actions/runs/13532804403/job/37818662385?pr=398

@mkanoor
Copy link
Author

mkanoor commented Feb 26, 2025

I think it might be related to the the way we are building the tox env. Closing for now.

@mkanoor mkanoor closed this as completed Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants