azure backend not working with latest Azure Storage SDK for Python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
There is a problem using latest version of duplicity (0.7.12) with latest Azure Storage SDK for Python (2.0.0) for access Azure resources
root@restore:~# duplicity --file-to-restore data/Capability --no-encryption azure:/
Using archive dir: /root/.
Using backup name: 851a65c225c23ac
GPG binary is gpg, version 1.4.20
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Using temporary directory /tmp/duplicity-
Backend error detail: Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib/
backup, local_pathname = set_backend(
File "/usr/lib/
globals.backend = backend.
File "/usr/lib/
obj = get_backend_
File "/usr/lib/
return factory(pu)
File "/usr/lib/
Exception: %s""" % str(e))
BackendException: Azure backend requires Microsoft Azure Storage SDK for Python (https:/
Exception: cannot import name BlobService
Required package is already installed
root@restore:~# pip freeze
adal==0.4.5
asn1crypto==0.22.0
azure-common==1.1.6
azure-nspkg==2.0.0
azure-storage=
certifi==2017.4.17
cffi==1.10.0
cryptography==1.8.1
duplicity=
enum34==1.1.6
futures==3.1.1
idna==2.5
ipaddress==1.0.18
isodate==0.5.4
keyring==10.3.2
lockfile==0.12.2
msrest==0.4.8
oauthlib==2.0.2
packaging==16.8
pathlib2==2.2.1
pexpect==4.0.1
ptyprocess==0.5
pycparser==2.17
pycrypto==2.6.1
PyJWT==1.5.0
pyparsing==2.2.0
python-
requests==2.14.2
requests-
scandir==1.5
SecretStorage=
six==1.10.0
There is no error when using old version of azure package (0.11.1)
Problem is on Linux (Debian, Ubuntu, RHEL and CentOS)
There is no error as well when using old version of azure-storage 0.20.3 (coming into Azure SDK 1.0.3).