-
Notifications
You must be signed in to change notification settings - Fork 3k
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
az keyvault: module 'inspect' has no attribute 'getargspec' (Python 3.11) #26398
Comments
Thank you for opening this issue, we will look into it. |
Works for me after monkey patching that BC code in
to
I'd create a PR but probably you know better which exception class to use so that it actually falls back where needed. |
I also got hit pretty hard by this issue today, so I did a bit of digging. Here's what I found! I'm running I first found the file referenced above ( Instead, the file I wanted to edit was And, much like @nemobis, I don't think I have the context to do much more than some armchair programming here, but I'll do that, anyway :) It seems like the CLI references at least two very old versions of the keyvault library, which include the call to |
Ah, and a bit more sleuthing shows that this was fixed upstream, in https://github.com/Azure/azure-sdk-for-python, in Azure/azure-sdk-for-python@472ad50#diff-f30a51a90a4f5d130438cd6a1d8b90675129154d7c45bca09cb2a37a3fc03a82L61 (which is a merge commit of Azure/azure-sdk-for-python#6080, including Azure/azure-sdk-for-python@f914749#diff-f30a51a90a4f5d130438cd6a1d8b90675129154d7c45bca09cb2a37a3fc03a82L61), and so any version released after that (so azure-keyvault>=4.0.0, the next (track2?) version after 1.1.0, which this library is using) should work fine with Python3.11. |
@calvinhzy is working on migrating secret related commands to use track2 SDK which will replace current |
Thanks @ChandlerSwift for your detective work. You saved me a lot of trouble 💯 |
Fixed in #26923 |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az keyvault secret show
Errors:
Traceback:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az keyvault secret show --vault-name {} --name {}
Expected Behavior
Not error out
Environment Summary
azure-cli installed from Fedora repositories, both Fedora 37and Fedora 38
Additional Context
python/cpython#100680 (comment)
In master it's supposed to be called only for backward compatibility:
The text was updated successfully, but these errors were encountered: