Skip to content

Importing azure.identity results in "string argument without an encoding" error #40231

Closed
@DumpsterDave

Description

@DumpsterDave
  • Package Name: azure-identity
  • Package Version: 1.21.0
  • Operating System: Debian GNU/Linux 12 (bookworm) (64-bit Raspberry Pi OS)
  • Python Version: 3.13.2

Describe the bug
When attempting to import the azure.indentity module (or specific elements from it), it does not load and instead gets stuck in an error "string argument without an ecoding". Occassionally, it will import ok, but never twice in a row . I have attempted to load this via the cmdline too as well as in a script with that as the only line and it always hangs at that command. import azure.identity or from azure.identity import CertificateCredential

To Reproduce
Steps to reproduce the behavior:

  1. attempt to import azure.identity

Expected behavior
The module loads

Screenshots
see attached logs
putty.log

Additional context
I can occasionally get this to work by rebooting, however it's extremely inconsistent.

Metadata

Metadata

Assignees

Labels

Azure.IdentityClientThis issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions