Django-storages: from azure.storage.blob import BlobPermissions gives import error in azure_storage.py

Created on 17 Apr 2020  路  10Comments  路  Source: jschneier/django-storages

hi,

I am using azure-storage-blob==12.3.0. while sublcassing AzureStorage, it gives the following error:
cannot import name 'BlobPermissions'

I figured out that in new version this model "BlobPermission" has been renamed.

any solution to it?

Thanks,
Shubham

Most helpful comment

There is an open PR. On the next version I will merge that in and drop current support.

All 10 comments

Came to post the same issue.

Do you happen to know what the model BlobPermission is now named?

I guess BlobSASPermissions. or they might have removed it also as they have done majore changes in 12.x. version.
Could you find any workaround? I wasted one whole day to nothing.

Do you happen to know what the model BlobPermission is now named?

I guess BlobSASPermissions. its like one do only one thing.

Could you find any workaround? I wasted one whole day to nothing.

Do you happen to know what the model BlobPermission is now named?

It appears django-storages doesn鈥檛 support azure-sdk-12. In order to make it work you鈥檇 need to instal an older version of azure-sdk

There is an open PR. On the next version I will merge that in and drop current support.

There is an open PR. On the next version I will merge that in and drop current support.

Great Thanks alot man. It would be a great help :) when can we expect the next version?

Thanks,
shubham

Hey! any update on this?

Looks like it got missed in the release

Hey, any update about the next version, I am eagerly waiting for django storages to support azure-sdk-12

Looking forward for an update as well!

Was this page helpful?
0 / 5 - 0 ratings