-
Notifications
You must be signed in to change notification settings - Fork 104
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
"sdk_moniker" key error #424
Comments
Can confirm. I am getting the same error after upgrading azure-storage-blob |
I just raised and closed a PR - looks like this needs to be fixed in azure-storage-blob. azure-storage-blob pre 12.18.0 looks like this: config.user_agent_policy = UserAgentPolicy(
sdk_moniker=(f"storage-{kwargs.pop('storage_skd')}/{VERSION}", **kwargs)
) and, it now look like this:
Effectively, if you pass in sdk_moniker in a version before 12.18.0 you'll get both a dynamically generated skd_moniker, and the one you've specified, throwing an error. If you don't pass one in for version 12.18.0, you'll get an error. So aside from doing something like figuring out which version of azure-store-blob is installed and then acting conditionally on that, I don't think it's possible to use create_configuration in a way that's consistent across versions. If they haven't already spotted this, I'll let the azure-blob-storage project know this - I'm assuming its an accident. |
I've put this PR in to azure-blob-storage which I think should fix the issue |
* Fix for adlfs transitive dep `azure-storage-blob`: fsspec/adlfs#424
The fix for This should be released as a patch later today or tomorrow. Thanks. |
Thanks for following up! As you mentioned in Azure/azure-sdk-for-python#32056 (comment), adlfs shouldn't be using private APIs from azure.storage.blob (there are a handful) I've opened #426 to track that. |
Thanks @TomAugspurger Tom! I commented on that issue just to help out with some suggestions :). As for this issue, |
I've tested and this is all working as before with 12.18.1 - thanks @jalauzon-msft for sorting! |
This is an error that's coming downstream from aszure-sdk-for-python since yesterdays (azure-storage-blob) release (12.8.0)
It happens at initialisation of AzureBlobFileSystem() if azure-storage-blob version is 12.8.0. Here's the traceback:
Seems like the issue is this line:
which effictively makes "sdk_moniker" a required keyword argument.
It's a new issue, so I don't know if azure-storage-blob has plans to fix on its side. Is there any need for defensive input of an "skd_monker" here? I think the fix would essentially just be something like this:
The text was updated successfully, but these errors were encountered: