Skip to content

display_as: AttributeError: 'module' object has no attribute 'get_encoding' #81

Closed
@msimacek

Description

@msimacek

When using explicitly set name type, it doesn't segfault, but crashes nevertheless.

Reproducer:

python -c 'import gssapi as g;g.Name("foo@bar.baz",g.NameType.kerberos_principal).display_as(g.NameType.kerberos_principal)'

Stacktrace:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/gssapi/names.py", line 146, in display_as
    _utils.get_encoding())
AttributeError: 'module' object has no attribute 'get_encoding'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions